Skip to content

Instantly share code, notes, and snippets.

@tjerman
Created February 25, 2022 08:23
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 tjerman/2112f7ae3f1bcb9945bf0d50a04b60d0 to your computer and use it in GitHub Desktop.
Save tjerman/2112f7ae3f1bcb9945bf0d50a04b60d0 to your computer and use it in GitHub Desktop.
{
"workflows": [
{
"handle": "testko",
"enabled": true,
"meta": {
"name": "testko",
"description": "",
"visual": null
},
"keepSessions": 0,
"steps": [
{
"stepID": "5",
"kind": "expressions",
"ref": "",
"arguments": [
{
"target": "test",
"expr": "{}",
"type": "KV"
}
],
"results": [],
"meta": {
"name": "",
"description": "",
"visual": {
"defaultName": true,
"id": "5",
"parent": "1",
"value": "Define and mutate scope variables",
"xywh": [
2560,
2200,
200,
80
]
}
}
},
{
"stepID": "9",
"kind": "iterator",
"ref": "composeRecordsEach",
"arguments": [
{
"target": "module",
"value": "cupcake",
"type": "Handle"
},
{
"target": "namespace",
"value": "cupcake",
"type": "Handle"
}
],
"results": [
{
"target": "record",
"expr": "record"
}
],
"meta": {
"name": "",
"description": "",
"visual": {
"defaultName": true,
"id": "9",
"parent": "1",
"value": "Compose records",
"xywh": [
2840,
2200,
200,
80
]
}
}
},
{
"stepID": "10",
"kind": "expressions",
"ref": "",
"arguments": [
{
"target": "test",
"expr": "set(test, format(\"%d\", record.recordID), record.values.name)",
"type": "KV"
}
],
"results": [],
"meta": {
"name": "",
"description": "",
"visual": {
"defaultName": true,
"id": "10",
"parent": "1",
"value": "Define and mutate scope variables",
"xywh": [
2840,
2360,
200,
80
]
}
}
},
{
"stepID": "13",
"kind": "prompt",
"ref": "options",
"arguments": [
{
"target": "message",
"value": "Hello!",
"type": "String"
},
{
"target": "options",
"expr": "test",
"type": "KV"
}
],
"results": [
{
"target": "picked",
"expr": "value"
}
],
"meta": {
"name": "",
"description": "",
"visual": {
"defaultName": true,
"id": "13",
"parent": "1",
"value": "Prompt user with options",
"xywh": [
3120,
2200,
200,
80
]
}
}
},
{
"stepID": "14",
"kind": "debug",
"ref": "",
"arguments": null,
"results": [],
"meta": {
"name": "",
"description": "",
"visual": {
"defaultName": true,
"id": "14",
"parent": "1",
"value": "Logs current workflow scope into server logs. If workflow debug is enabled",
"xywh": [
3400,
2200,
200,
80
]
}
}
}
],
"paths": [
{
"parentID": "5",
"childID": "9",
"meta": {
"name": "",
"description": "",
"visual": {
"id": "8",
"parent": "1",
"points": [],
"style": "exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;",
"value": null
}
}
},
{
"parentID": "9",
"childID": "10",
"meta": {
"name": "",
"description": "",
"visual": {
"id": "11",
"parent": "1",
"points": [],
"style": "exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;",
"value": "Body"
}
}
},
{
"parentID": "9",
"childID": "13",
"meta": {
"name": "",
"description": "",
"visual": {
"id": "12",
"parent": "1",
"points": [],
"style": "exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;",
"value": "End"
}
}
},
{
"parentID": "13",
"childID": "14",
"meta": {
"name": "",
"description": "",
"visual": {
"id": "15",
"parent": "1",
"points": [],
"style": "exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;",
"value": null
}
}
}
],
"triggers": [
{
"resourceType": "compose",
"eventType": "onManual",
"constraints": [
{
"name": "",
"op": "=",
"values": [
""
]
}
],
"enabled": true,
"stepID": "5",
"meta": {
"description": "",
"visual": {
"defaultName": true,
"edges": [
{
"childID": "5",
"meta": {
"description": "",
"label": "",
"visual": {
"id": "7",
"parent": "1",
"points": [],
"style": "exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;",
"value": null
}
},
"parentID": "4"
}
],
"id": "4",
"parent": "1",
"value": "Compose - onManual",
"xywh": [
2280,
2200,
200,
80
]
}
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment