[Feature Request] Can we built a parser that loads workflow definitions from JSON or YAML
Could we build a simple Workflow Parser for reading JSON or YAML Definitions?
Interesting suggestion. Does this mean given a JSON file describing a workflow and work, it will generate the code for it?
We need not generate the code. The workflow framework could expose methods that take a JSON definition as Input and returns a Workflow Object as Output. Example: WorkFlow workflow = Workflow.load("definition.json");
I know it's an old question though the issue is open so for YAML you can look at a project I forked from this one. It's been modified too much to contribute back. Write workflows in YAML, use a context for state, then trigger the workflow by a named id. https://github.com/rajkowski/easy-flows-playbooks