View Source WorkflowMetal.Storage.Schema.Arc (workflow_metal v0.2.1)

Present an arc.

example

Example

[A(place)] -1-> [B(transition)] -2-> [C(place)]

  %__MODULE__{
    id: "id-1"
    workflow_id: "workflow_id"
    place_id: A
    transition_id: B
    direction: :out
  }
  %__MODULE__{
    id: "id-2"
    workflow_id: "workflow_id"
    place_id: C
    transition_id: B
    direction: :in
  }

Link to this section Summary

Link to this section Types

Specs

direction() :: :in | :out

Specs

id() :: term()

Specs

metadata() :: map()

Specs

Specs

t() :: %WorkflowMetal.Storage.Schema.Arc{
  direction: direction(),
  id: id(),
  metadata: metadata() | nil,
  place_id: place_id(),
  transition_id: transition_id(),
  workflow_id: workflow_id()
}

Specs

Specs