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

Json load #186

Closed
wants to merge 3 commits into from
Closed

Json load #186

wants to merge 3 commits into from

Conversation

danielmacho72
Copy link

@danielmacho72 danielmacho72 commented Sep 14, 2016

Hi, I have been working in this change for some time in order to be able to read and write workflow configuration from externalized json files.

This is something I find quite valuable for a personal project I am working on. This functionality I am sending will leverage (not in this PR yet) to update and maintain the workflow design using a UI (e.g a browser HTML5 canvas component that could generate json format that will ultimately update the workflow definition)

This PR reads json workflow configuration from files but future PRs could keep external models in NOSQL databases (e.g MongoDB)

I hope you like this PR and you accept to merge it in the main branch. I have created specific tests for this functionality available under tests/json_load_test.rb

Usage from test/json_load_test.rb

Order.workflow_spec.from_json_file!('workflows/order.wf')
Order.reassign_workflow!

@geekq geekq closed this Jan 12, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants