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

introduce transition predicates #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mhaberler
Copy link

a transition or timed transition may optionally be guarded by a predicate. The transition will fire only if the evaluation of the predicate returns true.

The using_predicates example shows how to dynamically enable/disable transitions at runtime.

Michael Haberler added 2 commits January 2, 2022 23:17
the transition will fire only iff predicate returns true. Default is true.
a transition guarded with a predicate will only fire if the predicate returns
true.

In this example, transitions will start firing only after 5s post startup.
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

1 participant