Glific v0.3.1 Glific.Flows.Action View Source
The Action object which encapsulates one action in a given node.
Link to this section Summary
Functions
Execute a action, given a message stream. Consume the message stream as processing occurs
Process a json structure from floweditor to the Glific data types
Link to this section Types
Specs
t() :: %Glific.Flows.Action{ attachments: list() | nil, body: String.t() | nil, enter_flow: Glific.Flows.Flow.t() | nil, enter_flow_uuid: Ecto.UUID.t() | nil, field: map() | nil, groups: list() | nil, headers: map() | nil, id: term(), labels: list() | nil, language: term(), method: String.t() | nil, name: String.t() | nil, node: Glific.Flows.Node.t() | nil, node_uuid: Ecto.UUID.t() | nil, quick_replies: [String.t()], result_name: String.t() | nil, templating: Glific.Flows.Templating.t() | nil, text: String.t() | nil, type: String.t() | nil, url: String.t() | nil, uuid: Ecto.UUID.t() | nil, value: String.t() | nil }
Link to this section Functions
Specs
execute(t(), Glific.Flows.FlowContext.t(), [String.t()]) :: {:ok, Glific.Flows.FlowContext.t(), [String.t()]} | {:error, String.t()}
Execute a action, given a message stream. Consume the message stream as processing occurs
Specs
process(map(), map(), Glific.Flows.Node.t()) :: {t(), map()}
Process a json structure from floweditor to the Glific data types