1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00
budibase/packages/client/tests/workflowOrchestrator.spec.js
2020-05-26 21:34:01 +01:00

43 lines
984 B
JavaScript

const TEST_WORKFLOW = {
"_id": "8ebe79daf1c744c7ab204c0b964e309e",
"_rev": "37-94ae573300721c98267cc1d18822c94d",
"name": "Workflow",
"type": "workflow",
"definition": {
"next": {
"type": "CLIENT",
"actionId": "SET_STATE",
"args": {
"path": "myPath",
"value": "foo"
},
"next": {
"type": "SERVER",
"actionId": "SAVE_RECORD",
"args": {
"record": {
"modelId": "f452a2b9c3a94251b9ea7be1e20e3b19",
"name": "workflowRecord"
},
"next": {
"type": "CLIENT",
"actionId": "SET_STATE",
"args": {
"path": "myPath",
"value": "$context.SAVE_RECORD.record.name"
},
}
}
}
}
}
};
describe("Workflow Orchestrator", () => {
it("executes a workflow", () => {
});
it("", () => {
});
});