Currently, the demo uses custom code to get elements by name, then the retrieved ids are passed to the API of bpmn-visualization.
We could use the API provided by bv-experimental-add-ons that directly use names as parameters:
Done at least in:
|
export function getBpmnActivityElementbyName(activityName){ |
|
if(globals.bpmnActivityElements){ |
|
return globals.bpmnActivityElements.find((elt) => elt.bpmnSemantic.name === activityName); |
|
} |
|
return null |
|
} |
Currently, the demo uses custom code to get elements by name, then the retrieved ids are passed to the API of
bpmn-visualization.We could use the API provided by
bv-experimental-add-onsthat directly use names as parameters:namesas parameters bpmn-visualization-addons#73Done at least in:
bpmn-visualization-pm4py/frontend/src/utils.js
Lines 3 to 8 in ff8e970