Skip to content

Commit

Permalink
auto-init process in method findElementByID
Browse files Browse the repository at this point in the history
Issue #237
  • Loading branch information
rsoika committed Aug 30, 2024
1 parent d7c61f5 commit b35f174
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,15 @@ public void removeAllEdgesFromElement(String elementId) {
*
*/
public BPMNElement findElementById(String id) {
if (!this.initialized) {
try {
// lazy loading a process...
this.init();
} catch (BPMNModelException e) {
logger.severe("Unable to open Process " + this.getId());
return null;
}
}
BPMNElement result = null;
result = findElementNodeById(id);
if (result != null) {
Expand Down

0 comments on commit b35f174

Please sign in to comment.