Add one/several CSS class(es) to one/several BPMN element(s).
Notice that if you pass ids that are not related to existing BPMN elements, their reference will be kept within the registry but nothing happens on the rendering side.
The BPMN id of the element(s) where to add the CSS classes
The name of the class(es) to add to the BPMN element(s)
Add one/several overlays to a BPMN element.
Notice that if you pass an id that is not related to an existing BPMN element, nothing happens on the rendering side.
The BPMN id of the element where to add the overlays
The overlays to add to the BPMN element
Get all elements by ids.
...
// Find all elements by specified id or ids
const bpmnElementsSet1 = bpmnVisualization.bpmnElementsRegistry.getElementsByIds('userTask_1');
const bpmnElementsSet2 = bpmnVisualization.bpmnElementsRegistry.getElementsByIds(['startEvent_3', 'userTask_2']);
// now you can do whatever you want with the elements
...
Get all elements by kinds.
...
// Find all elements by desired type or types
const bpmnTaskElements = bpmnVisualization.bpmnElementsRegistry.getElementsByKinds(bpmnvisu.ShapeBpmnElementKind.TASK);
const bpmnEndEventAndPoolElements = bpmnVisualization.bpmnElementsRegistry.getElementsByKinds([bpmnvisu.ShapeBpmnElementKind.EVENT_END, bpmnvisu.ShapeBpmnElementKind.POOL]);
// now you can do whatever you want with the elements
...
Remove all overlays of a BPMN element.
WARNING: could be renamed when adding support for removal of one or several specific overlays.
The BPMN id of the element where to remove the overlays
Remove one/several CSS class(es) from one/several BPMN element(s).
The BPMN id of the element(s) where to remove the CSS classes
The name of the class(es) to remove from the BPMN element(s)
Toggle one/several CSS class(es) for one/several BPMN element(s). Notice that if you pass ids that are not related to existing BPMN elements, their reference will be kept within the registry but nothing happens on the rendering side.
The BPMN id of the element(s) where to remove the CSS classes
The name of the class(es) to remove from the BPMN element(s)
Generated using TypeDoc
subject to change, feedback welcome.