Workflow User API
Workflow User API allows users to manually control Aidbox workflows by RPC methods.
awf.workflow/create-and-execute
awf.workflow/create-and-execute
Creates an instance of a defined workflow and makes it ready to be executed immediately or at a specified time.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Identifier of workflow (If not provided, will be auto-generated). | |
label | string | Human- or machine-readable description of workflow instance.
Example: | |
definition | string | Definition of predefined workflow or
custom-defined workflow.
Example: | |
params | object | The input parameters described in the workflow definition. | |
executeAt | string | Time at which the workflow will become ready. If not provided - workflow will become ready immediately.
Example: |
Result:
Parameter | Type | Description |
---|---|---|
resources | object[] | Created AidboxWorkflow resources. |
awf.workflow/cancel
awf.workflow/cancel
Cancels a workflow that is not in status done
, canceling recursively all activities started by that workflow.
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Id of the workflow to be canceled. |
Result:
Parameter | Type | Description |
---|---|---|
resource | object | The canceled AidboxWorkflow resource. |
awf.workflow/status
awf.workflow/status
Returns the status of a workflow instance with the specified id.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Id of the workflow whose status will be returned. | |
include-activities? | boolean | If | |
include-decisions? | boolean | If |
Result:
Parameter | Type | Description |
---|---|---|
resource | object | AidboxWorkflow resource. |
activities | object[] | Activities started by workflow. |
decisions | object[] | Decision task resources of workflow. |
awf.workflow/list
awf.workflow/list
Returns the list of all workflows.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
filter | object | ||
filter.status | string | Include workflow with specified status.
Possible values: | |
filter.outcome | string | Include workflow with status | |
filter.ilike | string | ilike search by resource content | |
sort | object | May contain either | |
sort.createdAt | string | Sorts result by | |
sort.lastUpdated | string | Sorts result by |
Result:
Parameter | Type | Description |
---|---|---|
resources | object[] | AidboxWorkflow resources. |
Last updated