--- swagger: "2.0" info: description: "Flowable Platform" version: "v1" title: "Flowable CORE REST API" contact: name: "Flowable" url: "http://www.flowable.com/" host: "localhost:8090" basePath: "/core-api" tags: - name: "Application info" - name: "Case Instances" - name: "Process Definitions" - name: "Process Instances" - name: "System" - name: "Task" - name: "Tasks" - name: "User Admin" schemes: - "http" - "https" paths: /about-info: get: tags: - "Application info" summary: "Application Info" description: "" operationId: "applicationInfo" produces: - "application/json" parameters: [] responses: 200: description: "Indicates the request was successful." schema: type: "object" additionalProperties: type: "object" /case-definitions/{caseDefinitionId}/start-form: get: operationId: "getCaseDefinitionStartForm" produces: - "application/json" parameters: - name: "caseDefinitionId" in: "path" required: true type: "string" responses: 200: description: "successful operation" schema: $ref: "#/definitions/FormModelResponse" /case-instances/{caseInstanceId}/timers/{elementId}/stop-repetition: post: tags: - "Case Instances" summary: "Stop the timer repetition" description: "" operationId: "stopCaseInstanceTimerRepetition" produces: - "application/json" parameters: - name: "caseInstanceId" in: "path" description: "Unique identifier of a case instance" required: true type: "string" - name: "elementId" in: "path" description: "Unique identifier of the timer element in the case definition" required: true type: "string" responses: 204: description: "Indicates the timer will be stopped after the next run." 400: description: "Indicates the request was invalid." 403: description: "Indicates the user does not have the rights to stop the timer." 404: description: "Indicates the case instance or element was not found." security: - basicAuth: [] /license: get: summary: "Get license info" description: "" operationId: "getLicenseInfo" parameters: - name: "anonymizeUserIds" in: "query" description: "Anonymize the user ids. Only relevant if user login information\ \ is returned." required: false type: "boolean" - name: "end" in: "query" description: "The end timestamp in ISO8601 date format for which user login\ \ information is being requested. If not set then it is now." required: false type: "string" format: "date-time" - name: "includeValidationInfo" in: "query" description: "Include the license validation information. Only allowed for\ \ admin users. If one of start or end are set then this parameter is ignored." required: false type: "boolean" - name: "start" in: "query" description: "The start timestamp in ISO8601 date format for which user login\ \ information is being requested. If not set then it is one year ago." required: false type: "string" format: "date-time" responses: 200: description: "Indicates license has been found." schema: $ref: "#/definitions/LicenseInfoResponse" post: tags: - "User Admin" summary: "Upload license" description: "The user has to have admin rights." operationId: "uploadLicense" parameters: - name: "fileContent" in: "query" required: true type: "ref" responses: 201: description: "Indicates license has been uploaded." schema: $ref: "#/definitions/LicenseResponse" 403: description: "Indicates the user has no admin rights." /license/user-logins: get: summary: "Get Users login info" description: "" operationId: "getUserLoginsInfo" parameters: - in: "body" name: "request" description: "User request" required: false schema: $ref: "#/definitions/UserLoginInfoRequest" responses: 200: description: "Indicates the user login information." schema: $ref: "#/definitions/UserLoginInfoResponse" /process-definitions/{processDefinitionId}/start-form: get: operationId: "getProcessDefinitionStartForm" produces: - "application/json" parameters: - name: "processDefinitionId" in: "path" required: true type: "string" responses: 200: description: "successful operation" schema: $ref: "#/definitions/FormModelResponse" /process-definitions/{processDefinitionId}/timers/{elementId}/stop-repetition: post: tags: - "Process Definitions" summary: "Stop the timer repetition" description: "" operationId: "stopProcessDefinitionTimerRepetition" produces: - "application/json" parameters: - name: "processDefinitionId" in: "path" description: "Unique identifier of a process definition" required: true type: "string" - name: "elementId" in: "path" description: "Unique identifier of the timer element in the process definition" required: true type: "string" responses: 204: description: "Indicates the timer will be stopped after the next run." 400: description: "Indicates the request was invalid." 403: description: "Indicates the user does not have the rights to stop the timer." 404: description: "Indicates the process definition or element was not found." /process-instances/{processInstanceId}/timers/{elementId}/stop-repetition: post: tags: - "Process Instances" summary: "Stop the timer repetition" description: "" operationId: "stopProcesInstanceTimerRepetition" produces: - "application/json" parameters: - name: "processInstanceId" in: "path" description: "Unique identifier of a process instance" required: true type: "string" - name: "elementId" in: "path" description: "Unique identifier of the timer element in the process definition" required: true type: "string" responses: 204: description: "Indicates the timer will be stopped after the next run." 400: description: "Indicates the request was invalid." 403: description: "Indicates the user does not have the rights to stop the timer." 404: description: "Indicates the process instance or element was not found." security: - basicAuth: [] /system/info: get: tags: - "System" summary: "Display System information for all nodes" description: "Return system information for all nodes that have registred something\ \ in the database" operationId: "systemInfo" produces: - "application/json" parameters: [] responses: 200: description: "successful operation" schema: type: "array" items: $ref: "#/definitions/SystemInformationResponse" /system/info/current: get: tags: - "System" summary: "Display System information for the current node" description: "Return system information for the current node" operationId: "systemInfoCurrentNode" produces: - "application/json" parameters: [] responses: 200: description: "successful operation" schema: $ref: "#/definitions/SystemInformationResponse" /tasks/{taskId}/complete: post: tags: - "Task" summary: "Complete a task with a form" description: "" operationId: "completeTaskForm" parameters: - name: "taskId" in: "path" required: true type: "string" - in: "body" name: "body" required: false schema: $ref: "#/definitions/CompleteFormRepresentation" responses: 200: description: "Indicates that the task was found and was completed." 404: description: "Indicates that the task was not found and was not completed." security: - basicAuth: [] /tasks/{taskId}/form: get: tags: - "Task" summary: "Get task form" description: "" operationId: "getTaskForm" produces: - "application/json" parameters: - name: "taskId" in: "path" required: true type: "string" responses: 200: description: "Indicates that the task was found." schema: $ref: "#/definitions/FormModelResponse" 404: description: "Indicates that the task was not found." security: - basicAuth: [] /tasks/{taskId}/save-form: post: tags: - "Task" summary: "Save a task with a form" description: "" operationId: "saveTaskForm" parameters: - name: "taskId" in: "path" required: true type: "string" - in: "body" name: "body" required: false schema: $ref: "#/definitions/SaveFormRepresentation" responses: 200: description: "Indicates that the task was found and was completed." 404: description: "Indicates that the task was not found and was not completed." security: - basicAuth: [] /tasks/{taskId}/variables: get: tags: - "Task" summary: "Get task variables" description: "" operationId: "getTaskVariables" parameters: - name: "taskId" in: "path" required: true type: "string" responses: 200: description: "Indicates that the task was found." schema: type: "object" additionalProperties: type: "object" 404: description: "Indicates that the task was not found." security: - basicAuth: [] securityDefinitions: basicAuth: type: "basic" definitions: AppCount: type: "object" properties: appDefinitionKey: type: "string" tenantId: type: "string" totalDefinitions: type: "integer" format: "int64" definitionCounts: type: "array" items: $ref: "#/definitions/DefinitionCount" CommonUserLicenseCount: type: "object" properties: application: type: "string" userId: type: "string" tenantId: type: "string" logins: type: "integer" format: "int64" CompleteFormRepresentation: type: "object" properties: values: type: "object" additionalProperties: type: "object" outcome: type: "string" CustomValidationDefinition: type: "object" properties: expression: type: "string" errorMsg: type: "string" i18n: type: "object" additionalProperties: type: "object" additionalProperties: type: "string" DefinitionCount: type: "object" properties: definitionType: type: "string" count: type: "integer" format: "int64" EventDefinition: type: "object" properties: id: type: "string" eventType: type: "string" implementationType: type: "string" expression: type: "string" resultVariable: type: "string" FormModel: type: "object" FormModelResponse: type: "object" properties: id: type: "string" name: type: "string" description: type: "string" key: type: "string" version: type: "integer" format: "int32" formModel: $ref: "#/definitions/FormModel" url: type: "string" formKey: type: "string" dialogSize: type: "string" dialogTitle: type: "string" dialogDescription: type: "string" forceValidation: type: "boolean" defaultDateFormat: type: "string" defaultNumberFormat: type: "string" rows: type: "array" items: $ref: "#/definitions/RowDefinition" metadata: $ref: "#/definitions/MetadataDefinition" section: $ref: "#/definitions/SectionDefinition" outcomes: type: "array" items: $ref: "#/definitions/OutcomeDefinition" formModelEvents: type: "array" items: $ref: "#/definitions/EventDefinition" customValidations: type: "array" items: $ref: "#/definitions/CustomValidationDefinition" LicenseInfoResponse: type: "object" properties: licensee: type: "string" primaryContact: type: "string" issueDate: type: "string" format: "date-time" productLicenses: type: "array" items: $ref: "#/definitions/ProductLicenseResponse" validationInfo: $ref: "#/definitions/LicenseValidationInfo" description: "Response for license information" LicenseInstanceCount: type: "object" properties: application: type: "string" tenantId: type: "string" timestamp: type: "string" description: "ISO8601 date-time" scopeType: type: "string" scopeSubType: type: "string" count: type: "integer" format: "int64" signature: type: "string" LicenseInstanceCountAggregation: type: "object" properties: application: type: "string" tenantId: type: "string" scopeType: type: "string" scopeSubType: type: "string" month: type: "integer" format: "int32" year: type: "integer" format: "int32" count: type: "integer" format: "int64" LicenseInstanceCounts: type: "object" properties: start: type: "string" description: "ISO8601 date-time" end: type: "string" description: "ISO8601 date-time" countAggregations: type: "array" items: $ref: "#/definitions/LicenseInstanceCountAggregation" validationCounts: type: "array" items: $ref: "#/definitions/LicenseInstanceCount" LicenseResponse: type: "object" properties: licensee: type: "string" primaryContact: type: "string" issueDate: type: "string" format: "date-time" productLicenses: type: "array" items: $ref: "#/definitions/ProductLicenseResponse" LicenseValidationInfo: type: "object" required: - "generationTimestamp" - "signature" properties: userLoginCounts: description: "The information of the user login counts" $ref: "#/definitions/UserLoginCounts" instanceCounts: description: "The information of the license instance counts" $ref: "#/definitions/LicenseInstanceCounts" appCounts: type: "array" description: "The information of the application counts" items: $ref: "#/definitions/AppCount" nodeInformation: type: "array" description: "The information of the nodes" items: $ref: "#/definitions/NodeInformation" generationTimestamp: type: "string" description: "The ISO 8601 timestamp when this validation information was\ \ created" signature: type: "string" description: "The signature for the validation information" MetadataDefinition: type: "object" properties: key: type: "string" name: type: "string" description: type: "string" version: type: "string" modelType: type: "string" flowableDesignVersion: type: "integer" format: "int32" NodeInformation: type: "object" properties: nodeName: type: "string" lastActive: type: "string" description: "ISO8601 date-time" OutcomeDefinition: type: "object" properties: label: type: "string" value: type: "string" visible: type: "string" enabled: type: "string" primary: type: "string" ignorePayload: type: "boolean" ignoreValidation: type: "boolean" hideErrors: type: "boolean" styleClass: type: "string" navigationUrl: type: "string" outcomeFormKey: type: "string" i18n: type: "object" additionalProperties: type: "object" additionalProperties: type: "string" ProductLicenseResponse: type: "object" properties: productName: type: "string" version: type: "string" expiryDate: type: "string" format: "date-time" type: type: "string" enum: - "PRODUCTION_LICENSE" - "DEVELOPMENT_LICENSE" - "EXPERIMENTAL_LICENSE" - "TRIAL_LICENSE" entitlements: type: "object" additionalProperties: type: "string" RowDefinition: type: "object" properties: cols: type: "array" items: type: "object" additionalProperties: type: "object" SaveFormRepresentation: type: "object" properties: values: type: "object" additionalProperties: type: "object" SectionDefinition: type: "object" properties: name: type: "string" visibility: type: "string" SystemInformationResponse: type: "object" properties: nodeName: type: "string" timestamp: type: "string" description: "ISO8601 date-time" details: type: "object" additionalProperties: type: "object" UserLoginCounts: type: "object" properties: start: type: "string" description: "ISO8601 date-time" end: type: "string" description: "ISO8601 date-time" counts: type: "array" items: $ref: "#/definitions/CommonUserLicenseCount" UserLoginInfoRequest: type: "object" properties: start: type: "string" description: "The start timestamp in ISO8601 format for which user login information\ \ is being requested. If not set then it is one year ago." end: type: "string" description: "The end timestamp in ISO8601 format for which user login information\ \ is being requested. If not set then it is now." tenantId: type: "string" description: "The tenant for which the user logins are requested. Only available\ \ for super admin users." description: "Request that is used for requesting user login information." UserLoginInfoResponse: type: "object" required: - "end" - "start" - "uniqueLogins" properties: start: type: "string" description: "The start timestamp in ISO8601 format for the unique login." end: type: "string" description: "The end timestamp in ISO8601 format for the unique login." uniqueLogins: type: "integer" format: "int64" description: "The unique user logins within the requested period" description: "Response for a user login information"