Record Class ExecutionContext
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.ExecutionContext
Immutable execution context that flows along execution edges. Contains accumulated outputs from all upstream nodes in the current execution chain. Each branch of execution gets its own context snapshot.
This is the Node-RED/n8n-style "message" that flows through the execution chain. Trigger outputs (bot, tickCount, message, etc.) become the initial context. Each node's outputs are merged into the context for downstream nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionContext(Map<String, NodeValue> values) Creates an instance of aExecutionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionContextempty()Creates an empty execution context.final booleanIndicates whether some other object is "equal to" this one.static ExecutionContextCreates an execution context from initial trigger outputs.final inthashCode()Returns a hash code value for this object.Creates a new context with the given node outputs merged in.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
ExecutionContext
-
-
Method Details
-
empty
Creates an empty execution context. -
from
Creates an execution context from initial trigger outputs. -
mergeWith
Creates a new context with the given node outputs merged in. New values override existing ones with the same key. Returns a new instance — this context is not modified. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
values
-