Class BranchNode

java.lang.Object
com.soulfiremc.server.script.AbstractScriptNode
com.soulfiremc.server.script.nodes.flow.BranchNode
All Implemented Interfaces:
ScriptNode

public final class BranchNode extends AbstractScriptNode

Flow control node that branches execution based on a condition. Input: condition (boolean) Outputs: trueOut (fires if condition is true), falseOut (fires if condition is false)

The script executor should use the output values to determine which branch to execute.

  • Field Details

  • Constructor Details

    • BranchNode

      public BranchNode()
  • Method Details

    • executeReactive

      public reactor.core.publisher.Mono<Map<String, NodeValue>> executeReactive(NodeRuntime runtime, Map<String, NodeValue> inputs)
      Description copied from interface: ScriptNode
      Executes this node reactively with the given runtime and inputs.
      Parameters:
      runtime - the node runtime providing access to instance and scheduler
      inputs - the resolved input values from connected nodes or default values
      Returns:
      a Mono that completes with the node's output values