import { BpmnType, EventType } from '../Constants'; import { MessageEventDefinition } from '../Events/index'; import { Activity } from './ActivityBase'; /** * Describes a BPMN ReceiveTask. * * A ReceiveTask is used to wait for a message send by a SendTask. * Works the same as the IntermediateMessageCatchEvent. */ export type ReceiveTask = Activity & { readonly bpmnType: BpmnType.receiveTask; readonly eventType: EventType; messageChannel: string; /** * This is the user defined Message which is expected by this ReceiveTask. */ messageEventDefinition: MessageEventDefinition; /** * Optional: If set, the Receive Task will only continue, if the given expression results into a value, which matches the value from triggerValueInEventPayload. */ triggerValueInToken?: string; /** * Optional: If set, the Receive Task will only continue, if the given expression results into a value, which matches the value from triggerValueInToken. */ triggerValueInEventPayload?: string; };