Closed kymr closed 6 years ago
{
"name" : "descriptive unique name",
"event": "event_type:event_location",
"condition": "boolean condition",
"actions": ["see examples below"]
}
{
"fileType": "AUDIO",
"version": 3,
"metadata": {
length: 300,
codec: "aac"
}
}
Expression | Result |
---|---|
$.version > 1 | TRUE |
$.version > 10 | FALSE |
$.metadata.length == 300 | TRUE |
Start a Workflow
{
"action": "start_workflow",
"start_workflow": {
"name": "WORKFLOW_NAME",
"version": <optional>
"input": {
"param1": "${param1}"
}
}
}
Complete Task
{
"action": "complete_task",
"complete_task": {
"workflowId": "${source.externalId.workflowId}",
"taskRefName": "task_1",
"output": {
"response": "${source.result}"
}
},
"expandInlineJSON": true
}
Fail Task
{
"action": "fail_task",
"fail_task": {
"workflowId": "${source.externalId.workflowId}",
"taskRefName": "task_1",
"output": {
"response": "${source.result}"
}
},
"expandInlineJSON": true
}
Input for starting a workflow
output when completing / failing task follows the same expressions used for wiring workflow inputs.
Expanding stringified JSON elements in payload
expandInlineJSON property, when set to true will expand the inlined stringified JSON elements in the payload to JSON documents and replace the string value with JSON document.
This feature allows such elements to be used with JSON path expressions.
Link