SC.Actions.LogAction (sc v1.0.2)

View Source

Represents a <log> element in SCXML.

The <log> element is used to generate logging output. It has two optional attributes:

  • label: A string that identifies the source of the log entry
  • expr: An expression to evaluate and include in the log output

Per the SCXML specification, if neither label nor expr are provided, the element has no effect.

Summary

Functions

Creates a new log action from parsed attributes.

Types

t()

@type t() :: %SC.Actions.LogAction{
  expr: String.t() | nil,
  label: String.t() | nil,
  source_location: map() | nil
}

Functions

new(attributes, source_location \\ nil)

@spec new(map(), map() | nil) :: t()

Creates a new log action from parsed attributes.