BpmnShape
23 Sep 20251 minute to read
Defines the behavior of the bpmn shape
Properties
activity BpmnActivityModel
Defines the type of the BPMN Activity shape
Defaults to ‘None’
annotation BpmnAnnotationModel
Defines the text of the bpmn annotation
Defaults to ‘None’
annotations BpmnAnnotationModel[]
Defines the text of the bpmn annotation collection
Defaults to ‘None’
dataObject BpmnDataObjectModel
Defines the type of the BPMN DataObject shape
Defaults to ‘None’
event BpmnEventModel
Defines the type of the BPMN Event shape
Defaults to ‘None’
gateway BpmnGatewayModel
Defines the type of the BPMN Gateway shape
Defaults to ‘None’
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
Defaults to ‘None’
type Shapes
Defines the type of node shape
Defaults to ‘Basic’