Business Process
Business Process Management
Upload Workflow Endpoint POST /api/v1/workflows/upload
| Resource URL | /api/v1/workflows/upload |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Description
Upload an XML file for workflow processing.
Request Body
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| file | XML file to upload | Yes | Binary | N/A |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Save Workflow Endpoint POST /api/v1/workflows/save
| Resource URL | /api/v1/workflows/save |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Description
Save a BPMN/XML string for future use.
Request Body
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| title | Title of the workflow | No | String | N/A |
| createdUser | User who created the workflow | No | String | N/A |
| dueDate | Due date for the workflow | No | String | N/A |
| workflow | BPMN/XML string content | No | String | N/A |
| isActive | Indicates if workflow deploys immediately | No | Boolean | false |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Update Workflow Endpoint PATCH /api/v1/workflows/update
| Resource URL | /api/v1/workflows/update |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Description
Update a BPMN/XML string by ID.
Request Body
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| title | Title of the workflow | No | String | N/A |
| identifier | Workflow ID to update | No | String | N/A |
| dueDate | Due date for the workflow | No | String | N/A |
| workflow | Updated BPMN/XML string content | No | String | N/A |
| isDeployed | Indicates if workflow is deployed | No | Boolean | false |
| isActive | Indicates if workflow should deploy immediately | No | Boolean | false |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Activate/Deploy a Workflow Endpoint PATCH /api/v1/workflows/activate
| Resource URL | /api/v1/workflows/activate |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | No |
| HTTPS | Yes |
Description
Activate an already defined workflow by ID.
Parameters
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| identifier | Workflow ID to activate | Yes | String | N/A |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Activate/Deploy a Workflow Endpoint PATCH /api/v1/workflows/activate
| Resource URL | /api/v1/workflows/activate |
|---|---|
| Response Format | JSON |
| Requires Authentication | Not specified |
| Rate Limited | Not specified |
| HTTPS | Assumed Yes |
Parameters
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| page | Page number | No | Integer | 1 |
| size | Item per page | No | Integer | 10 |
| sortOrder | Sort order (asc/desc) | No | String | "asc" |
| searchConfigs | Search configuration | No | String | N/A |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |