Search results

BpmnShapeModel

Interface for a class BpmnShape

Properties

activity

BpmnActivityModel

Defines the type of the BPMN Activity shape

annotation

BpmnAnnotationModel

Defines the text of the bpmn annotation

annotations

BpmnAnnotationModel[]

Defines the text of the bpmn annotation collection

dataObject

BpmnDataObjectModel

Defines the type of the BPMN DataObject shape

event

BpmnEventModel

Defines the type of the BPMN Event shape

gateway

BpmnGatewayModel

Defines the type of the BPMN Gateway shape

shape

string

<div id='diagram'></div>
let nodes: NodeModel[] = [{
 id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100,
 shape: {
  type: 'Bpmn', shape: 'Gateway',
  gateway: { type: 'EventBased' } as BpmnGatewayModel
        } as BpmnShapeModel,
}];
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');

type

string

Defines the type of node shape