ActionNodeMetaData

Extended contract for trigger and executor metadata that carries an explicit nodeAction discriminator.

Applying this interface to the trigger-family and SourceMetaData hierarchy lets the server processor and the editor UI branch on action without per-type when arms. The default on every concrete implementation is NodeAction.EXECUTE, preserving wire-compatibility with pre-0.0.23 payloads that lack the field.

Inheritors

Properties

Link copied to clipboard
abstract val error: String

Last known error message for this node, or empty string when healthy.

Link copied to clipboard
abstract val nodeAction: NodeAction

The action this node performs when it fires. Defaults to NodeAction.EXECUTE on every concrete implementation so that deserialising a payload that predates this field yields the original behaviour unchanged.

Functions

Link copied to clipboard
open fun displayName(): String

Human-readable display name for this node, or empty string when the concrete type has no dedicated name field.

Link copied to clipboard
open fun isDigital(): Boolean

true when this node's value is inherently boolean / digital.

Link copied to clipboard
abstract fun withError(error: String): NodeMetaData

Returns a copy of this metadata with error replaced by the given string.