-
Notifications
You must be signed in to change notification settings - Fork 108
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
Cannot add markers to BPMN view with swim lanes #660
Comments
Thanks for reporting the issue, Michael I did realize, that the v6.5.1 of BPMN-JS is used. After switching to the new version, I did run into another issue I hope to get an answer soon and would rather prefer upgrading the BPMN-JS and hopefully get this fixed in the lib. If it's urgent, I would be fine to adopt your prepared patch ... just ping. |
Hi Martin, thanks a lot for checking out. For me it's fine to wait, I applied the workaround locally. |
@jbiblio Long story short - I did upgrade to the latest BPMN-JS and implemented your try/catch proposal. |
Hi @nitram509, thanks a lot for digging deeper. I can check a pre-release or something like that next week. Do you have a branch at hand I can integrate? |
Sure, just forgot to link it... |
Hi @nitram509 , my first tests look good, |
sounds great - thanks for the feedback. |
When I deploy a BPMN with swim lanes, the
addMarker
JS function fails with an error.Actual outcome
The green borders are not shown:
An error is present in the Console:
Expected outcome
Now you should see the green markers around the task:
Investigation
In
src/main/resources/templates/components/bpmn-diagram.html
, theaddMarkers
function iterates overelementInstances
. There is one instance present, that has no corresponding ID in the rendered diagram, AFAICS.This causes an error in JS, so following elements from
elementInstances
are not marked properly.Workaround
In
src/main/resources/public/js/app.js
, addtry-catch
inaddElementInstanceActiveMarker
andaddElementInstanceIncidentMarker
.This catches the error from the "unknown" element.
See https://github.com/jbiblio/zeebe-simple-monitor/tree/fix-swimlanes.
But I'd consider this as a workaround.
I'm undecided about the correct solution:
elementInstances
in the first place, but I see no way to identify that element on Java sideAny thoughts?
The text was updated successfully, but these errors were encountered: