Hi. I’m trying to add Message Start Event (non-interrupting) together with SubTask to the diagram in the following way:
const subProcessBO = this.bpmnFactory.create('bpmn:SubProcess')
subProcessBO.triggeredByEvent = true
const subProcess = this.elementFactory.createShape({
type: 'bpmn:SubProcess',
x: 0,
y: 0,
isExpanded: true,
businessObject: subProcessBO
})
const startEvent = this.elementFactory.createShape({
type: 'bpmn:StartEvent',
x: 40,
y: 82,
parent: subProcess,
isInterrupting: 'false',
businessObject: this.bpmnFactory.create('bpmn:StartEvent'),
eventDefinitionType: 'bpmn:MessageEventDefinition'
})
const endEvent = this.elementFactory.createShape({
type: 'bpmn:EndEvent',
x: 280,
y: 82,
parent: subProcess
})
const sequenceFlow = this.elementFactory.createConnection({
type: 'bpmn:SequenceFlow',
source: startEvent,
target: endEvent,
parent: subProcess,
waypoints: this.getWaypoints(startEvent.businessObject, startEvent, endEvent)
})
this.create.start(event, [subProcess, startEvent, endEvent, sequenceFlow], {
hints: {
autoSelect: [startEvent]
}
})
The problem is the “MessageStartEvent (non-interruptig)” visually looks like “MessageStartEvent”, but actually, it’s not. I’ve compared the XML in both cases and they are the same. And after I’ve reimported the XML, everything is ok, I mean, MessageStartEvent gets the correct shape.
So, step-by-step:
Subtask was added:
XML reopened (in my case - page was reloaded):
My question is: what I’m doing wrong? Why in the first case, it looks like MessageStartEvent (non-interrupting), and in the second case - it looks like a non-interrupting event?
And here is diff between XML versions (before / after reload)
Please note, that I’ve passed ‘false’ to the ‘isInterrupting’ property as string, because otherwise it’s not recognized (I mean, as a boolean value) for some reasons.
Thanks