Skip to content

Commit

Permalink
update workflow example
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Mar 21, 2024
1 parent a458c7c commit 5ee1496
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions lightning-workflow.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"start": "get-data",
"jobs": [
{
"id": "get-data",
"adaptor": "[email protected]",
"state": {},
"configuration": "./tmp/db-credential.json",
"expression": "./jobs/1-getPatientData.js",
"next": { "post-data": { "condition": "true" } }
},
{
"id": "post-data",
"adaptor": "http@latest",
"configuration": "./tmp/api-credential.json",
"configurationNext": "https://app.lightning.org/api/credentials/b321",
"state": {},
"expression": "./jobs/2-postData.js"
}
]
}
"options": {
"start": "get-data",
"timeout": 1200000
},
"workflow": {
"steps": [
{
"id": "get-data",
"adaptor": "[email protected]",
"state": {},
"configuration": "./tmp/db-credential.json",
"expression": "./jobs/1-getPatientData.js",
"next": {
"post-data": {
"condition": "true"
}
}
},
{
"id": "post-data",
"adaptor": "http@latest",
"configuration": "./tmp/api-credential.json",
"state": {},
"expression": "./jobs/2-postData.js"
}
]
}
}

0 comments on commit 5ee1496

Please sign in to comment.