LogicGateMetaData

@Serializable
data class LogicGateMetaData(val name: String = "logic gate", val gateType: LogicGate = LogicGate.BUFFER, val sources: List<NodeIdentity> = listOf(NodeIdentity("", "")), val snapshot: Snapshot = Snapshot(), val invocationTriggers: List<InvocationTrigger> = emptyList(), val nodeAction: NodeAction = NodeAction.EXECUTE, val error: String = "", val inputs: List<NodeIdentity> = emptyList()) : SourceMetaData(source)

Payload for a LogicGate executor node.

The default sources list is [NodeIdentity("", "")] (one empty slot) rather than empty so the editor renders an empty source row that the user can fill in immediately, matching the legacy behaviour of older clients.

Constructors

Link copied to clipboard
constructor(name: String = "logic gate", gateType: LogicGate = LogicGate.BUFFER, sources: List<NodeIdentity> = listOf(NodeIdentity("", "")), snapshot: Snapshot = Snapshot(), invocationTriggers: List<InvocationTrigger> = emptyList(), nodeAction: NodeAction = NodeAction.EXECUTE, error: String = "", inputs: List<NodeIdentity> = emptyList())

Properties

Link copied to clipboard
open override val error: String

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

Link copied to clipboard

Which boolean function to evaluate; see LogicGate.

Link copied to clipboard
open override val inputs: List<NodeIdentity>

sets the nodes this node reads from to complete its work when invoked

Link copied to clipboard

The set of InvocationTriggers configured to wake this node. The node processor checks the incoming event against this list before doing any work. An empty list means "never auto-fire" — only manual execution.

Link copied to clipboard
Link copied to clipboard
open override 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.

Link copied to clipboard
open override val snapshot: Snapshot

Stores the last result of when this node was invoked and is a source of data

Link copied to clipboard
open override val sources: List<NodeIdentity>

Upstream nodes whose values feed this one. For a filter or executor this is the data being read; for a trigger it is the value being watched.