Workflow Engine (0.0.1)
Download OpenAPI specification:Download
The Workflow Engine API
Workflow Definition Create
It will create new definition in database
Authorizations:
Request Body schema: application/json
required | object Workflow Definition Data |
key required | string Frontend Framework slug |
ui | object UI Object |
Responses
Request samples
- Payload
{- "workflowData": {
- "name": "string",
- "description": "string",
- "status": "active",
- "global": {
- "key": "value"
}, - "tasks": [
- {
- "id": "string",
- "name": "string",
- "type": "FUNCTION",
- "next": [
- "string"
], - "previous": [
- "string"
]
}
]
}, - "key": "string",
- "ui": {
- "key": "value"
}
}
Response samples
- 201
{- "name": "string",
- "description": "string",
- "tasks": [
- { }
], - "global": { },
- "status": "active",
- "uiObject": { },
- "userId": "string"
}
Workflow Definition Edit
It will update definition in database
Authorizations:
path Parameters
id required | any (id) Definition Id |
Request Body schema: application/json
required | object Workflow Definition Data |
key required | string Frontend Framework slug |
ui | object UI Object |
Responses
Request samples
- Payload
{- "workflowData": {
- "name": "string",
- "description": "string",
- "status": "active",
- "global": {
- "key": "value"
}, - "tasks": [
- {
- "id": "string",
- "name": "string",
- "type": "FUNCTION",
- "next": [
- "string"
], - "previous": [
- "string"
]
}
]
}, - "key": "string",
- "ui": {
- "key": "value"
}
}
Workflow Definition Detail
It will return definition document with all corelated runtime documents also
Authorizations:
path Parameters
id required | any (id) Definition Id |
Responses
Response samples
- 200
{- "name": "string",
- "description": "string",
- "tasks": [
- { }
], - "global": { },
- "status": "active",
- "uiObject": { },
- "userId": "string"
}
Workflow Definition
It will return definition document
Authorizations:
path Parameters
id required | any (id) Definition Id |
Responses
Response samples
- 200
{- "name": "string",
- "description": "string",
- "tasks": [
- { }
], - "global": { },
- "status": "active",
- "uiObject": { },
- "userId": "string"
}
Workflow Engine Start
It will start workflow engine for specified definition with addition of global params
Authorizations:
Request Body schema: application/json
workflowDefinitionId required | string Workflow Definition Id |
globalParams | object Workflow GlobalParams |
Responses
Request samples
- Payload
{- "workflowDefinitionId": "string",
- "globalParams": { }
}
Workflow Engine Process
It will start workflow engine for specified task name. This is Internal Path used by engine itself as HTTP Transport
Authorizations:
Request Body schema: application/json
workflowRuntimeId required | string Workflow Runtime Id |
taskName required | string Workflow Definition Task Name |
Responses
Request samples
- Payload
{- "workflowRuntimeId": "string",
- "taskName": "string"
}
Process Listen Task
It will Process Listen Task with globalParams update
header Parameters
x-api-key required | string Listen Task Security |
Request Body schema: application/json
workflowRuntimeId required | string Workflow Runtime Id |
taskName required | string Workflow Definition Task Name |
globalParams | object Workflow GlobalParams |
Responses
Request samples
- Payload
{- "workflowRuntimeId": "string",
- "taskName": "string",
- "globalParams": { }
}