Comments (11)
I can reproduce your issue. Despite dedicated handling for it the marker is always shown.
I presume this is due to a bug in our model import.
from bpmn-js.
Changing this to a bug report, as it is against the intended, and implemented behavior. We aim to empower the user.
from bpmn-js.
I presume this is due to a bug in our model import.
Never mind this. We actually (unnecessarily) force isMarkerVisible=true
during modeling.
Happy to take a contribution that fixes it in the ElementFactory
+ adds test coverage.
from bpmn-js.
@barmac Today I noticed that this doesn't work in the latest release, even though my contribution is included. Seems we both forgot to check the diagram after the final changes.
It looks like the simplification is the cause of this, see
bpmn-js/lib/features/modeling/ElementFactory.js
Lines 221 to 223 in f991d4e
The original code makes rendering work.
} else {
attrs = applyAttribute(di, attrs, 'isMarkerVisible');
if (di.isMarkerVisible === undefined) {
di.isMarkerVisible = true;
}
}
What is the best way forward to fix this?
from bpmn-js.
Thanks for sharing, I will look into this.
from bpmn-js.
Does it really not work though? I experimented with the following context pad code:
'append.gateway': appendAction(
'bpmn:ExclusiveGateway',
'bpmn-icon-gateway-none',
translate('Append gateway')
),
'append.gateway1': appendAction(
'bpmn:ExclusiveGateway',
'bpmn-icon-gateway-none',
translate('Append gateway'),
{ isMarkerVisible: undefined }
),
which allowed to create both types of gateway:
Screen.Recording.2024-01-29.at.17.25.18.mov
from bpmn-js.
@barmac Thanks for getting back to this.
My expectation is that the marker is hidden for existing gateways that have isMarkerVisible=false
. This doesn't work when I open an existing model, see test/fixtures/bpmn/draw/xor.bpmn in bpmn.io
I guess the same will happen to your model once you save and re-open it.
from bpmn-js.
In the test on main
it looks OK though:
I will make sure that the demo.bpmn.io is up to date so that we can verify outside of local environment.
from bpmn-js.
OK I can reproduce it with the current version of bpmn-js.
from bpmn-js.
I guess the same will happen to your model once you save and re-open it.
So the isMarkerVisible
is overridden once the XML is exported.
from bpmn-js.
Closed via #2102
from bpmn-js.
Related Issues (20)
- Post release job does not operate on new tag
- Post release job to update examples does not work HOT 1
- Directed association (from compensation event) can be connected to text annotation HOT 7
- Resizing Vertical Pools and Lanes
- `elements.changed` event handler doesn't return an actual information about BPMN schema HOT 4
- Copy and Paste of Comensation Handler Results in an Error HOT 3
- Pasting Compensation Activity Doesn't Remove `isForCompensation` Marker
- CompensateBoundaryEventBehavior.js: fail 'shape.replace' event handler when the `targetElement` is undefined HOT 5
- Collapsed Event Sub-Processes do not show the type HOT 7
- Vertical lane removal leads to unexpected outcome
- Lane removal leads to child lane overflowing the parent for some diagrams HOT 1
- Parallel Multiple Events are rendered with fill HOT 1
- Handle Adding Vertical Lanes HOT 2
- Redo/undo and Copy/Paste issue HOT 5
- Loading a simple BPMN with a swimlane results in TypeError: Cannot read properties of undefined (reading 'bpmnElement') HOT 4
- Vertical participant hit box should contain the top bar HOT 5
- The browser event is not disabled when adding a new task and adding a comment HOT 5
- Undo/redo shortcuts don't work on Cyrillic keyboard layout
- Can we add a dropdown in the Java class feature in the right panel? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpmn-js.