Skip to content

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.

3 participants