BpmnEvent API in JavaScript Diagram API control
Defines the behavior of the bpmn Event shape
Properties
event
BpmnEvents
let nodes: NodeModel[] = [{
id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100,
shape: {
type: 'Bpmn', shape: 'Event',
event: { event: 'Start', trigger: 'None' } } as BpmnShapeModel,
}];
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');
Defaults to ‘Start’
trigger
BpmnTriggers
Defines the type of the trigger
- None - Sets the type of the trigger as None
- Message - Sets the type of the trigger as Message
- Escalation - Sets the type of the trigger as Escalation
- Link - Sets the type of the trigger as Link
- Error - Sets the type of the trigger as Error
- Compensation - Sets the type of the trigger as Compensation
- Signal - Sets the type of the trigger as Signal
- Multiple - Sets the type of the trigger as Multiple
- Parallel - Sets the type of the trigger as Parallel
- Cancel - Sets the type of the trigger as Cancel
- Conditional - Sets the type of the trigger as Conditional
- Terminate - Sets the type of the trigger as Terminate
Defaults to ‘None’