BpmnTask API in JavaScript (ES5) Diagram API control
Defines the behavior of the bpmn task shape
Properties
call
boolean
Sets whether the task is global or not
Defaults to false
compensation
boolean
Sets whether the task is triggered as a compensation of another specific activity
let nodes: NodeModel[] = [{
id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100,
shape: {
type: 'Bpmn', shape: 'Activity', activity: {
activity: 'Task',
task: { call: true, compensation: false, type: 'Service', loop: 'ParallelMultiInstance' }
}} as BpmnShapeModel,
}];
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');
Defaults to false
loop
string
Defines the type of the BPMN loops
- None - Sets the type of the Bpmn loop as None
- Standard - Sets the type of the Bpmn loop as Standard
- ParallelMultiInstance - Sets the type of the Bpmn loop as ParallelMultiInstance
- SequenceMultiInstance - Sets the type of the Bpmn loop as SequenceMultiInstance
Defaults to ‘None’
type
string
Defines the type of the task
- None - Sets the type of the Bpmn Tasks as None
- Service - Sets the type of the Bpmn Tasks as Service
- Receive - Sets the type of the Bpmn Tasks as Receive
- Send - Sets the type of the Bpmn Tasks as Send
- InstantiatingReceive - Sets the type of the Bpmn Tasks as InstantiatingReceive
- Manual - Sets the type of the Bpmn Tasks as Manual
- BusinessRule - Sets the type of the Bpmn Tasks as BusinessRule
- User - Sets the type of the Bpmn Tasks as User
- Script - Sets the type of the Bpmn Tasks as Script
Defaults to ‘None’