import { Identity } from '../../DataModels/Iam/index'; /** * Encapsulates a message for when a Process Instance gets terminated. */ export type TerminateProcessInstanceMessage = { processInstanceId: string; /** * If the Process Instance is terminated by a user, this will contain the users identity. */ terminatedBy?: Identity; /** * If the Process Instance is terminated by a Terminate End Event, this will contain the End Events FlowNodeId. */ flowNodeId?: string; /** * If the Process Instance is terminated by a Terminate End Event, this will contain the End Events current token payload. */ currentToken?: any; };