Run Trigger

To run a trigger, use the run_trigger API with passing the trigger_name as a parameter.
The trigger will run a sequence of multiple events in IFlowly up to which you can configure each event.

For example
Depending on the source and destination of your trigger. The Approve event transitions the state from Pending to Approved.
Hence, all these events will be executed.

  • on_exit_pending
  • on_enter_approved
  • after_approve
flow = iflowly.get_flow('My Flow 1')
flow.run_trigger('approve')