import { BpmnType, EventType } from '../Constants'; import { MessageEventDefinition } from '../Events/index'; import { Activity } from './ActivityBase'; /** * Describes a BPMN SendTask. * * A SendTask sends a message. * Works the same as the IntermediateMessageThrowEvent. */ export type SendTask = Activity & { readonly bpmnType: BpmnType.sendTask; readonly eventType: EventType; messageChannel: string; /** * The message that should be send. ‚ */ messageEventDefinition: MessageEventDefinition; /** * Optional: * When sending a message, any process instance started by the message will use this correlation id. */ customCorrelationId?: any; /** * Optional: The payload to use. * If not provided, the current token is used as a payload. */ payload?: any; /** * The DataContract to validate the payload. */ dataContract?: string; };