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

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

Link to this function

execute(wait, context, messages)

View Source
@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.

Link to this function

process(json, uuid_map, router)

View Source
@spec process(map(), map(), Glific.Flows.Router.t()) :: {t(), map()}

Process a json structure from flow editor to the Glific data types

Link to this function

validate(wait, errors, flow)

View Source
@spec validate(t(), Keyword.t(), map()) :: Keyword.t()

Validate a wait