diff --git a/lightning-workflow.json b/lightning-workflow.json index d273af8..5247e7a 100644 --- a/lightning-workflow.json +++ b/lightning-workflow.json @@ -1,21 +1,29 @@ { - "start": "get-data", - "jobs": [ - { - "id": "get-data", - "adaptor": "postgresql@3.4.6", - "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": "postgresql@3.4.6", + "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" + } + ] + } +} \ No newline at end of file