This operation retrieves the process model or diagram for a process instance. Use it when a script needs access to process visual or model data.
The base request is:
getProcessDiagram()
The following example retrieves the process diagram for a process instance:
variables.diagram =
new RuntimeProcessInstanceService()
.getProcessDiagram(variables.processInstanceId);
Because this operation returns the diagram data directly, the script can immediately access and work with the process model information returned by the runtime service.