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

remove subflow State type, add subFlowRef to Action #37

Merged

Conversation

mattgarmon
Copy link
Contributor

@mattgarmon mattgarmon commented Aug 4, 2021

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:
This PR fixes "subflow" states to match what is in the specification: https://github.com/serverlessworkflow/specification/blob/main/specification.md#subflowref-definition

It removes the non-existent "subflow" State type, and adds the "subFlowRef" field to Action.
This also includes removing "workflowId" from other state types, as is is now done via Actions.

Special notes for reviewers:

Additional information (if needed):
By default the "subFlowRef" uses the full object type with "workflowId" and "version" fields, instead of the shorthand notation of just using the workflowId string. This is to be consistent with other fields which can have both string and object values.

@tsurdilo
Copy link
Contributor

tsurdilo commented Aug 4, 2021

@ricardozanini :)

Copy link
Member

@ricardozanini ricardozanini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattgarmon, many thanks! Now I'll have the time to go through the code to update with the 0.7 schema release.

@ricardozanini ricardozanini merged commit 82fb728 into serverlessworkflow:main Aug 5, 2021
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

3 participants