Search results

BpmnActivityModel

Interface for a class BpmnActivity

Properties

activity

string

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

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');

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');