import { BpmnType } from '../Constants'; import { Activity } from './ActivityBase'; /** * Describes a BPMN CallActivity. * * CallActivities also describe a type of subprocess, except that the process * is not contained within the parent process, but is located somewhere else. * * This means that the process called by the CallActivity can also run by itself, * unlike the subprocess contained within the 'SubProcess' Activity. */ export type CallActivity = Activity & { readonly bpmnType: BpmnType.callActivity; targetProcessModelId?: string; /** * Optional: The ID of the StartEvent with which to call the CallActivity. * If no ID is provided, the first found StartEventID is used. */ startEventId?: string; /** * Optional: The payload with which to start the CallActivity. * If not provided, the current token is used as a payload. */ payload?: any; /** * The DataContract to validate the payload. */ dataContract?: string; /** * If set, the child process instance will use this correlation ID, instead of the of the one used by the parent process. */ customCorrelationId?: string; /** * @deprecated */ calledElementVersion?: string; };