Skip to content

Add tags and metadata to the state machine states #35

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 3 commits into from
Jul 10, 2025

Conversation

oEscal
Copy link
Contributor

@oEscal oEscal commented Jul 10, 2025

This is a simple subfeature of the feature implemented in #30.
It simply adds more information to each state machine state:

  • Now, each state has tags with information regarding its workflow entity (if it is a function, a branch, a state, or even the type of state).
    • With these tags, the created graphs have distinct colors related to whether that state is associated with a function, a branch, a state, etc.
  • Each state also has metadata with raw information regarding its workflow entity. For example, now a machine state related to a function will have that specific function definition.

Other minor fixes grouped in this PR:

  • Foreach-related state machine states now have a transaction to themselves.
  • The StateMachineGenerator class now receives the workflow once (and not its states one by one) and generates the state machine with only one call.

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 1c5104c into serverlessworkflow:main Jul 10, 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