Start a Process Instance - Start a Process Instance - This operation starts a process using administrative access. Use it when an administrative script or service needs to start a process. - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/gbc3375222293609 - Current - Current

Hyland Automate Modeler

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

This operation starts a process using administrative access. Use it when an administrative script or service needs to start a process.

The base request is:

startProcess(startProcessPayload)

The following example starts a process using a process definition key stored in a process variable:

variables.process =
    new RuntimeProcessInstanceAdminService()
        .startProcess({
            payloadType: 'StartProcessPayload',
            processDefinitionKey: variables.processKey
        });

Use StartProcessPayload when a script needs to start a process immediately.

The following example starts the orderProcess process and provides additional information and variables:

const startProcessPayload = {
    processDefinitionKey: 'orderProcess',
    name: 'Order review',
    businessKey: variables.businessKey,
    variables: {
        orderId: variables.orderId,
        priority: 'HIGH'
    }
};

variables.process =
    new RuntimeProcessInstanceAdminService()
        .startProcess(startProcessPayload);

In this example:

  • processDefinitionKey: 'orderProcess' specifies the process definition to start.
  • name: 'Order review' assigns a name to the process instance.
  • businessKey: variables.businessKey associates the process instance with the specified business identifier.
  • variables provides variables to the new process instance. Here, orderId receives the value of variables.orderId, and priority is set to HIGH.
  • startProcess(startProcessPayload) starts the process and returns the resulting process instance.