BPXE.Engine.FlowHandler behaviour (bpxe v0.1.0)

Link to this section Summary

Link to this section Callbacks

Link to this callback

commit_state(instance, txn, instance_id, id, handler_config)

Specs

commit_state(
  instance :: term(),
  txn :: term(),
  instance_id :: term(),
  id :: term(),
  handler_config :: term()
) :: :ok | {:error, :term}
Link to this callback

restore_state(instance, instance_id, handler_config)

(optional)

Specs

restore_state(
  instance :: term(),
  instance_id :: term(),
  handler_config :: term()
) :: :ok | {:error, :term}
Link to this callback

save_state(instance, txn, instance_id, id, pid, state, handler_config)

Specs

save_state(
  instance :: term(),
  txn :: term(),
  instance_id :: term(),
  id :: term(),
  pid :: pid(),
  state :: term(),
  handler_config :: term()
) :: :ok | {:error, :term}