View Source Glific.Flows.Wait (Glific v5.1.6)
The Wait object which encapsulates the wait for a router
Link to this section Summary
Functions
Execute a wait, given a message stream.
Process a json structure from flow editor to the Glific data types
Validate a wait
Link to this section Types
@type t() :: %Glific.Flows.Wait{ category_uuid: :uuid | nil, expression: String.t(), id: term(), seconds: non_neg_integer() | nil, type: String.t() | nil }
Link to this section Functions
@spec execute(t(), Glific.Flows.FlowContext.t(), [Glific.Messages.Message.t()]) :: {:ok, Glific.Flows.FlowContext.t() | nil, [Glific.Messages.Message.t()]} | {:error, String.t()}
Execute a wait, given a message stream.
@spec process(map(), map(), Glific.Flows.Router.t()) :: {t(), map()}
Process a json structure from flow editor to the Glific data types
Validate a wait