CalculationEngineNodeMetaData

@Serializable
data class CalculationEngineNodeMetaData(val sources: List<NodeIdentity> = emptyList(), val name: String = this::class.simpleName!!, val formula: String = "", val inputs: List<NodeIdentity> = emptyList(), val snapshot: Snapshot = Snapshot(), val invocationTriggers: List<InvocationTrigger> = emptyList(), val nodeAction: NodeAction = NodeAction.EXECUTE, val error: String = "") : SourceMetaData(source)

Payload for a Calculation executor node.

Constructors

Link copied to clipboard
constructor(sources: List<NodeIdentity> = emptyList(), name: String = this::class.simpleName!!, formula: String = "", inputs: List<NodeIdentity> = emptyList(), snapshot: Snapshot = Snapshot(), invocationTriggers: List<InvocationTrigger> = emptyList(), nodeAction: NodeAction = NodeAction.EXECUTE, error: String = "")

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

Free-form formula string evaluated by the server's calculation engine.

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

DOUBLE DataPoints referenced by formula (bracket tokens [hostId:nodeId]). Read at evaluation time only — NOT invocation sources (invocation is wired via sources / the Sources tab).

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

Display name; defaults to the class's simple name on creation.

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

Last computed value + timestamp. The readable output a DataPoint subscriber pulls when this calc wakes it. null until first compute.

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.