This operation updates process instance metadata. Use it to modify properties such as the process name, description, or business key.
The base request is:
updateProcess()
The following example updates the name of a process instance:
variables.process =
new RuntimeProcessInstanceService()
.updateProcess(
variables.processInstanceId,
{ name: 'Updated Case' }
);
Use UpdateProcessPayload when a script needs to update process instance metadata.
The following example updates multiple process properties:
const updateProcessPayload = {
name: 'Updated Order Review',
description: 'Updated by script',
businessKey: variables.businessKey
};
variables.process =
new RuntimeProcessInstanceService()
.updateProcess(
variables.processInstanceId,
updateProcessPayload
);
Because this operation returns the updated process instance immediately, the script can use the latest process metadata in subsequent logic.