Interface for a class BpmnShape
Defines the type of the BPMN Activity shape
Defines the text of the bpmn annotation
Defines the text of the bpmn annotation collection
Defines the type of the BPMN DataObject shape
Defines the type of the BPMN Event shape
Defines the type of the BPMN Gateway shape
<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');
Defines the type of node shape