workflow icon indicating copy to clipboard operation
workflow copied to clipboard

Callback symbols and transition callbacks by convention

Open tlloydthwaites opened this issue 1 year ago • 0 comments

When building a workflow spec dynamically we can't specify procs, but we can specify symbols for methods we want to run.

This PR allows us to specify a symbol when calling on_entry and on_exit.

It also tries to call before_transition, on_transition, after_transition, and on_error as methods on the workflow object as well as using the standard procs.

tlloydthwaites avatar Mar 07 '24 04:03 tlloydthwaites