Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Can we built a parser that loads workflow definitions from JSON or YAML #30

Open
sandeep-equal opened this issue May 29, 2023 · 3 comments

Comments

@sandeep-equal
Copy link

Could we build a simple Workflow Parser for reading JSON or YAML Definitions?

@AmirNaghibi
Copy link

Interesting suggestion. Does this mean given a JSON file describing a workflow and work, it will generate the code for it?

@sandeep-equal
Copy link
Author

sandeep-equal commented Jun 12, 2023

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");

@rajkowski
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants