View Source Glific.Flows.Templating (Glific v5.1.6)

The Case object which encapsulates one category in a given node.

Link to this section Summary

Functions

We need to perform the execute in case template is an expression

Process a json structure from floweditor to the Glific data types

Link to this section Types

@type t() :: %Glific.Flows.Templating{
  expression: String.t() | nil,
  id: term(),
  localization: map(),
  name: String.t() | nil,
  template: Glific.Templates.SessionTemplate.t() | nil,
  uuid: Ecto.UUID.t() | nil,
  variables: list()
}

Link to this section Functions

Link to this function

execute(templating, context, messages)

View Source
@spec execute(t(), Glific.Flows.FlowContext.t(), [Glific.Messages.Message.t()]) ::
  t() | nil

We need to perform the execute in case template is an expression

@spec process(map() | nil, map()) :: {t(), map()}

Process a json structure from floweditor to the Glific data types