Runtime commands build Activiti command payloads and send them through the runtime command channel using commandProducer.send(...).
Use runtime commands to trigger runtime behavior from a script, such as starting processes, updating process variables, managing process instances, and publishing signals. Runtime commands do not perform actions directly. Instead, they create command payloads that are processed asynchronously by the runtime engine.
The general pattern is:
commandProducer.send(
processPayloadBuilder
.start()
.withProcessDefinitionKey('OrderApproval')
.build()
);
The following operations are available: