Using Runtime Commands in Scripts - Using Runtime Commands in Scripts - Runtime commands build Activiti command payloads and send them through the runtime command channel using commandProducer.send(...) . - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/fhm1961279538809 - Current - Current

Hyland Automate Modeler

Platform
Content Innovation Cloud
Product
Hyland Automate Modeler
Release
Current
License
ft:lastPublication
2026-11-16T23:02:28.533499
ft:locale
en-US

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: