-
Notifications
You must be signed in to change notification settings - Fork 32
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
[FEAT] Add API to search elements by BPMN Kinds #954
Conversation
@@ -35,8 +37,37 @@ export class BpmnElementsRegistry { | |||
.filter(e => e) | |||
.map(bpmnSemantic => ({ bpmnSemantic: bpmnSemantic, htmlElement: this.htmlElementRegistry.getBpmnHtmlElement(bpmnSemantic.id) })); | |||
} | |||
|
|||
getElementsByKinds(bpmnKinds: BpmnKind | BpmnKind[]): BpmnElement[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
// TODO rename into BpmnElementKind (for consistency with argument of computeBpmnBaseClassName otherwise, rename the argt) | ||
export type BpmnKind = FlowKind | ShapeBpmnElementKind; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have decided to name it BpmnElementKind
for consistency
7c749cf
to
3614bb8
Compare
Let pass one or several BPMN Kinds to get BpmnElements. This implementation relies on CSS selectors for searching elements. It will be possible to avoid this when the BpmnModel will be available and will provide search capabilities. # Conflicts: # src/component/registry/bpmn-elements-registry.ts # Conflicts: # src/component/registry/bpmn-elements-registry.ts
Better exclude the label instead of using the hacky style attribute
3614bb8
to
e5b1bd9
Compare
Kudos, SonarCloud Quality Gate passed! |
Let pass one or several BPMN Kinds to get BpmnElements.
This implementation relies on CSS selectors for searching elements. It will be
possible to avoid this when the BpmnModel will be available and will provide
search capabilities (see #953).
closes #927