Search results

BpmnActivity API in Angular Diagram API component

Defines the behavior of the bpmn activity shape

Properties

activity

BpmnActivities

Defines the type of the activity

  • None - Sets the type of the Bpmn Activity as None
  • Task - Sets the type of the Bpmn Activity as Task
  • SubProcess - Sets the type of the Bpmn Activity as SubProcess

Defaults to ‘Task’

subProcess

BpmnSubProcessModel

Defines the type of the SubProcesses

<div id='diagram'></div>
let nodes: NodeModel[] = [{
 id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100,
    shape: {
    type: 'Bpmn', shape: 'Activity', activity: {
    activity: 'SubProcess',
    subProcess: { collapsed: true } as BpmnSubProcessModel
  }
 },
}];
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');

Defaults to ‘None’

task

BpmnTaskModel

Defines the BPMN task

<div id='diagram'></div>
let nodes: NodeModel[] = [{
 id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100,
    shape: {
    type: 'Bpmn', shape: 'Activity', activity: {
    activity: 'Task', task: {
          type: 'Service'
      }
  }
 },
}];
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');

Defaults to ‘new BPMNTask()’