FlowRunner.Spec.Exit (flow_runner v6.15.1)

Copy Markdown

An exit is a potential branch off a FlowRunner.Spec.Block.

Summary

Functions

Cast the received fields to their internal representation

Load the map or list of maps into Elixir.FlowRunner.Spec.Exit structs.

Validate a Elixir.FlowRunner.Spec.Exit struct using Vex.validate

Types

t()

@type t() :: %FlowRunner.Spec.Exit{
  config: map(),
  default: term(),
  destination_block: String.t() | nil,
  name: String.t(),
  semantic_label: String.t(),
  test: String.t(),
  uuid: String.t(),
  vendor_metadata: map()
}

Functions

cast!(module, map)

@spec cast!(module(), map()) :: map()

Cast the received fields to their internal representation

evaluate(exit, context)

load!(blocks_module, list)

@spec load!(module(), map()) :: t()
@spec load!(module(), [map()]) :: [t()]

Load the map or list of maps into Elixir.FlowRunner.Spec.Exit structs.

valid?(self)

validate!(blocks_module, impl)

@spec validate!(blocks_module :: module(), t()) :: t()

Validate a Elixir.FlowRunner.Spec.Exit struct using Vex.validate