import { BpmnType } from '../Constants'; import { Activity } from './ActivityBase'; /** * Describes a BPMN ServiceTask. * A ServiceTask is used to delegate a BPMN Task to an external system. */ export type ServiceTask = Activity & { readonly bpmnType: BpmnType.serviceTask; /** * The invocation to be used when an HTTP ServiceTask is used. * @deprecated This property is no longer supported. Use "customType" instead. */ invocation?: MethodInvocation; /** * The ServiceTasks type. * Currently only supports 'external' and 'internal'. */ type: ServiceTaskType; /** * The topic to use in conjunction with external ServiceTasks. */ topic?: string; /** * The DataContract to validate the payload. */ dataContract?: string; /** * The payload to use in conjunction with external ServiceTasks. */ payload?: string; /** * If set to 'true', the Service Task will fail, if it is not processed after the first lock ends. */ isSingleTry?: boolean; /** * The type of ServiceTask. Determines how the ServiceTask is processed. */ customType?: string; }; /** * Describes all currently supported ServiceTask types. */ export declare enum ServiceTaskType { external = "external", internal = "internal" } /** * Used by HTTP ServiceTasks. * This contains the definition for a method invocation. * @deprecated This property is no longer supported. Use "ServiceTask.customType" instead. */ export type MethodInvocation = { module: string; method: string; params: string; };