Glific v0.3.1 Glific.Flows.Node View Source
The Node object which encapsulates one node in a given flow
Link to this section Summary
Functions
Execute a node, 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.Node{ actions: [Glific.Flows.Action.t()] | [], exits: [Glific.Flows.Exit.t()] | [], flow: Glific.Flows.Flow.t() | nil, flow_uuid: Ecto.UUID.t() | nil, id: term(), router: Glific.Flows.Router.t() | nil, uuid: Ecto.UUID.t() | nil }
Link to this section Functions
Specs
execute(t(), Glific.Flows.FlowContext.t(), [String.t()]) :: {:ok | :wait, Glific.Flows.FlowContext.t(), [String.t()]} | {:error, String.t()}
Execute a node, given a message stream. Consume the message stream as processing occurs
Specs
process(map(), map(), Glific.Flows.Flow.t()) :: {t(), map()}
Process a json structure from floweditor to the Glific data types