Services.Approvals.Workflow behaviour (fnord v0.8.83)

View Source

Summary

Types

args()

@type args() :: term()

decision()

@type decision() ::
  {:approved, state()}
  | {:denied, binary(), state()}
  | {:error, binary(), state()}

state()

@type state() :: term()

Callbacks

confirm(state, args)

@callback confirm(state(), args()) :: decision()