onInvoke

open suspend fun onInvoke(node: Node, by: NodeIdentity, verb: NodeAction)(source)

Invoked by ServerNodeManager.invoke when a deliberate action targets this node.

Default behaviour:

  • NodeAction.EXECUTE → delegates to process. No state-stamp wake (post(node.copy(state = EXECUTED))) is implied; the server's executeSources cascade (if any) is the caller's responsibility.

  • NodeAction.RESET → explicit no-op. RESET is terminal at the receiver; a generic node has no reset semantics and the rule forbids silently falling back to EXECUTE for a verb the processor does not handle.

Processors with per-source or per-verb logic (Trigger family, TaskList, DataPoint, Calculation) override this method entirely; the override fully replaces the default so there is no double-run.

Parameters

node

The target node as it stands at invocation time.

by

Identity of the node (or actor) that triggered this call — always NodeIdentity (nodeId + hostId), never a bare string.

verb

The action being applied — NodeAction.EXECUTE or NodeAction.RESET.