-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
784 no boundary event after event based gateway #873
784 no boundary event after event based gateway #873
Conversation
after review session with @barmac another case should be considered:
|
a219fb8
to
a91b54a
Compare
* Behavior for deleting boundaries from receive task after connecting them with event based gateway | ||
*/ | ||
export default function ConnectEventBasedGatewayBehavior( | ||
eventBus, modeling, bpmnRules) { |
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.
bpmnRules
is actually never used, so I think we should remove it before merge.
|
||
if (is(source, 'bpmn:EventBasedGateway') && | ||
isReceiveTaskWithBoundary(target)) { | ||
modeling.removeElements(extractBoundaryEvents(target)); |
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.
So we invoke extractBoundaryEvents
twice: first to check if the element is a ReceiveTask
with BoundaryEvent
s, and then to filter out all the BoundaryEvent
s and remove them. Why don't we filter the events once and then remove them if it's necessary? :)
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.
adjusted and rebased it :)
|
||
var diagramXML = require('./ConnectEventBasedGatewayBehavior.bpmn'); | ||
|
||
beforeEach(bootstrapModeler(diagramXML, { modules: testModules.concat(modelingModule) })); |
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.
Why do we add modelingModule
second time here? The tests seem to work without it.
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.
Added a few comments and after polishing it should be ready for merge.
a91b54a
to
e25e816
Compare
…ive tasks after connecting to event based gateway
e25e816
to
b8b84e3
Compare
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.
Looks good to me.
Implemented a Bpmn rule that it shouldn't be possible to attach a BoundaryEvent on a ReceiveTask following a EventBasedGateway in two different ways:
Closes camunda/camunda-modeler#784