How to implement "transitions"? #76
Replies: 1 comment 1 reply
-
|
@MichaelNino Laravel Workflow doesn't have explicit state machine transitions. In Laravel Workflow, transitions between activities are usually based on the completion of an activity or the occurrence of specific events or conditions. You can move from one activity to another by using await to pause the execution of the workflow until a specific signal or event triggers it to continue. (See: https://laravel-workflow.com/docs/features/signals) Alternatively, you can also make transitions based on the return value of an activity. If you still want explicit transitions then you can combine a state machine (like https://finite.readthedocs.io/en/master/) and then inside of your signal methods you can call something like I am going to make a blog post for this because you are not the first person to ask a similar question. Thanks for checking this out! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How does one implement transitions? Here is a snippet from Symfony Workflow at: https://symfony.com/doc/current/components/workflow.html#installation ?
I'd like to create transitions in Laravel Workflow.
Beta Was this translation helpful? Give feedback.
All reactions