Skip to content

Multiple fixes for the graph/state machine generation functionality #33

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

Merged
merged 4 commits into from
Jun 27, 2025

Conversation

oEscal
Copy link
Contributor

@oEscal oEscal commented Jun 27, 2025

This PR adds multiple bug fixes for the feature implemented in #30:

  • The parallel state did not have any initial state in the state machine.
  • When creating the parallel state in the state machine, the code was creating double the transitions for its actions.
  • When the parallel state had branches with subflows, it was creating an empty state apart from the state with all subflow.
  • In actions, with one or more subflows and one or more functions, the code was not creating the transitions between the subflows' states and the functions' states.
  • Renamed the source_code method (legacy from the TypeScript JDK) to generate.

oEscal added 4 commits June 24, 2025 17:50
Signed-off-by: Pedro Escaleira <[email protected]>
…hen the generate_actions_info already calls it (double calling)

Signed-off-by: Pedro Escaleira <[email protected]>
…here the machine state is a branch in parallel states

Signed-off-by: Pedro Escaleira <[email protected]>
…n in the set of its actions; also renamed the source_code function to generate

Signed-off-by: Pedro Escaleira <[email protected]>
Copy link
Member

@cdavernas cdavernas left a comment

Choose a reason for hiding this comment

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

LGTM! Cheers ❤️

@cdavernas cdavernas merged commit ee0a9ca into serverlessworkflow:main Jun 27, 2025
2 checks passed
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.

2 participants