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

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

@type 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_usec | nil,
  organization:
    Glific.Partners.Organization.t() | Ecto.Association.NotLoaded.t() | nil,
  organization_id: non_neg_integer() | nil,
  revision_number: integer() | nil,
  status: String.t() | nil,
  updated_at: :utc_datetime_usec | nil,
  version: integer() | nil
}

Link to this section Functions

Link to this function

changeset(flow_revision, attrs)

View Source
@spec changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types

Link to this function

default_definition(flow)

View Source
@spec default_definition(Glific.Flows.Flow.t()) :: map()

Default definition when we create a new flow