BpmnShapeModel
23 Sep 20251 minute to read
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 BpmnShapes
<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');textAnnotation BpmnTextAnnotationModel
Defines the type of the BPMN Text annotation shape
type Shapes
Defines the type of node shape