Template JSON
{
"nodes": [
{
"id": "start-1",
"type": "start",
"label": "Start",
"x": 80,
"y": 160,
"position": {
"x": 80,
"y": 160
},
"config": {
"publicSafe": true,
"protectedAction": false
},
"status": "idle",
"metadata": {}
},
{
"id": "api_call-2",
"type": "api_call",
"label": "Validate contract with Spec",
"x": 310,
"y": 240,
"position": {
"x": 310,
"y": 240
},
"config": {
"publicSafe": true,
"protectedAction": false,
"service": "spec.platphormnews.com"
},
"status": "idle",
"metadata": {}
},
{
"id": "condition-3",
"type": "condition",
"label": "Review contract result",
"x": 540,
"y": 160,
"position": {
"x": 540,
"y": 160
},
"config": {
"publicSafe": true,
"protectedAction": false,
"expression": "valid || degradedReason"
},
"status": "idle",
"metadata": {}
},
{
"id": "end-4",
"type": "end",
"label": "Complete",
"x": 770,
"y": 240,
"position": {
"x": 770,
"y": 240
},
"config": {
"publicSafe": true,
"protectedAction": false
},
"status": "idle",
"metadata": {}
}
],
"edges": [
{
"id": "edge-1",
"source": "start-1",
"target": "api_call-2",
"sourceNodeId": "start-1",
"targetNodeId": "api_call-2",
"condition": "success",
"metadata": {}
},
{
"id": "edge-2",
"source": "api_call-2",
"target": "condition-3",
"sourceNodeId": "api_call-2",
"targetNodeId": "condition-3",
"metadata": {}
},
{
"id": "edge-3",
"source": "condition-3",
"target": "end-4",
"sourceNodeId": "condition-3",
"targetNodeId": "end-4",
"metadata": {}
}
]
}