Glific v0.3.1 Glific.Flows.FlowRevision View Source

The flow revision object which encapsulates the complete flow as emitted by by https://github.com/nyaruka/floweditor

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Default definition when we create a new flow

Link to this section Types

Specs

t() :: %Glific.Flows.FlowRevision{
  __meta__: Ecto.Schema.Metadata.t(),
  definition: map() | nil,
  flow: Glific.Flows.Flow.t() | Ecto.Association.NotLoaded.t() | nil,
  flow_id: non_neg_integer() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  revision_number: integer() | nil,
  status: String.t() | nil,
  updated_at: :utc_datetime | nil
}

Link to this section Functions

Link to this function

changeset(flow_revision, attrs)

View Source

Specs

changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types

Link to this function

default_definition(flow)

View Source

Specs

default_definition(Glific.Flows.Flow.t()) :: map()

Default definition when we create a new flow