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
Currently, workflow doesn't run the on_new_entry callback. Is this expected? If so, what's the best practice for running a callback on entering of an initial state?
The text was updated successfully, but these errors were encountered:
, on entry is not called for the initial action, only when transitioning from one action to another.
I'd suggest defining a method with the state name, but that's tricky with an event called 'new'. You could always call it something else, like 'initial', and then you could have an initial method?
I'd like to run a callback when an object enters its initial state. For example:
Currently, workflow doesn't run the
on_new_entry
callback. Is this expected? If so, what's the best practice for running a callback on entering of an initial state?The text was updated successfully, but these errors were encountered: