UNPKG

@wmfs/tymly

Version:

A framework for building and sharing workflows in Node.js

43 lines (42 loc) 863 B
{ "Comment": "Upsert a cat. Find a cat.", "StartAt": "Upserting", "version": "1.0", "States": { "Upserting": { "Type": "Task", "InputPath": "$.catDoc", "Resource": "module:upserting", "ResourceConfig": { "modelId": "cat" }, "ResultPath": null, "Next": "FindingOne" }, "FindingOne": { "Type": "Task", "InputPath": "$.catDoc", "Resource": "module:findingOne", "ResourceConfig": { "modelId": "cat", "filter": { "where": { "name": { "equals": "$.name" } } } }, "ResultPath": "$.catDocFromStorage", "End": true } }, "restrictions": [ { "roleId": "$authenticated", "allows": [ "*" ] } ] }