Skip to content

Instantly share code, notes, and snippets.

@tsurdilo
Created February 23, 2021 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsurdilo/ab65d49e3c6a9e679c6f2501bbdf635f to your computer and use it in GitHub Desktop.
Save tsurdilo/ab65d49e3c6a9e679c6f2501bbdf635f to your computer and use it in GitHub Desktop.
{
"id": "flow",
"name": "Workflow",
"version": "1.0",
"events": [
{
"name": "Query",
"type": "query",
"source": "commerce/query"
}
],
"states": [
{
"name": "Input",
"type": "event",
"start": {
"kind": "default"
},
"onEvents": [
{
"eventRefs": [
"Query"
],
"actions": [
{
"name": "Validate",
"functionRef": {
"refName": ""
}
},
{
"name": "XYZ",
"functionRef": {
"refName": "",
"parameters": {}
}
}
]
}
],
"transition": {
"nextState": "Broadcast"
}
},
{
"name": "Broadcast",
"type": "parallel",
"branches": [
{
"name": "TaskA",
"workflowId": "TaskAFlow"
},
{
"name": "TaskB",
"workflowId": "TaskBFlow"
},
{
"name": "TaskC",
"actions": [
{
"name": "ABC",
"functionRef": {
"refName": "ABC"
}
}
]
}
],
"end": {
"kind": "default"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment