You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do I understand you correctly, that you expect the 'on_entry' for the first state
to be executed on the object creation? This is not the designed behaviour.
on_entry is only invoked on transitions for existing objects.
The example code is pretty long. If you still have any questions please
provide the complete minimal example in form of a test
showing your expectations. Then just reopen the issue.
In order to resolve this, I created a new "pre-state" which always automatically transitions to my first state (:planning above). That way the :planning state can fire off code when workflow enters that state.
I would think this would be the desired behavior. If you map workflow to a stoplight with three states :red, :yellow, :green, then your stoplight never lights up the the first light on the first go-round (but if the workflow loops back to the first state, then that state lights up on ever subsequent state change.)
I have the following workflow configuration:
But the code in :planning on_entry is no being executed. Can you please look over and see if you can tell me why?
Thanks! I appreciate your plugin!
Jason
The text was updated successfully, but these errors were encountered: