Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] Use the new bv-experimental-add-ons API using "name" parameters #14

Open
tbouffard opened this issue Feb 22, 2023 · 0 comments
Labels
refactoring Code refactoring

Comments

@tbouffard
Copy link
Member

tbouffard commented Feb 22, 2023

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
    }
@tbouffard tbouffard added the refactoring Code refactoring label Feb 22, 2023
@tbouffard tbouffard changed the title [REFACTOR] Use the new bpmn-visualization to "get elements by name" [REFACTOR] Use the new bpmn-visualization API to "get elements by name" Jul 17, 2023
@tbouffard tbouffard changed the title [REFACTOR] Use the new bpmn-visualization API to "get elements by name" [REFACTOR] Use the new bv-addons API to "get elements by name" Aug 22, 2023
@tbouffard tbouffard changed the title [REFACTOR] Use the new bv-addons API to "get elements by name" [REFACTOR] Use the new bv-experimental-add-ons API using "name" parameters Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code refactoring
Projects
Status: Todo
Development

No branches or pull requests

1 participant