Hello ,
i split a participant with tree lanes and i assigned of any of those lanes a name but the names doesn’t appear ,
NB : i can see the names displayed when click two time in the lane ( the direct editing show me the names ) so it’s good because the names is present in the lanes but will will not appear every time because will disappear after click on something else ( the normal behavior of direct editing ).
i want know how can i keep the names of lanes appear ?
NB: i did this programmatically not with using the palette
thanks in advance
const participant = elementFactory.createParticipantShape({
type: 'bpmn:Participant',
});
modeling.createShape(
participant,
{ x: 150, y: 50, width: 900, height: 600 },
process,
);
modeling.splitLane(participant, 3);
const childLanes = getChildLanes(participant);
childLanes.forEach((child, id) => {
const overlays = bpmnModeler.get('overlays');
child.businessObject.name =
id === 0 ? 'test1' : id === 1 ? 'test2' : 'test3';
}
);
NB : i’m working with this form of the initial xml diagram
<?xml version="1.0" encoding="UTF-8" ?>
<process-actions
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn">
<process-action id="ProcessAction_1">
</process-action>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</process-actions>
is it from this kind of xml , i think i have to use the standard xml which begin with the rag of definitions ?