Hi,
I added few shapes to the bottom of the canvas i saved the xml and after that ,when I open that xml it is not rendering at right position. Let me know if you need more details
Please find this images
Before save
!
After Saved
after_saving|478x562 !
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn=“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 ” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance ” id=“Definitions_1x3v4nm” targetNamespace=“http://bpmn.io/schema/bpmn ” exporter=“bpmn-js (https://demo.bpmn.io )” exporterVersion=“5.0.0-beta.0”>
<bpmn:process id=“Process_12g16aw” isExecutable=“false”>
<bpmn:startEvent id=“StartEvent_1n9ynou”>
bpmn:outgoing SequenceFlow_0nwzn3j</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:exclusiveGateway id=“ExclusiveGateway_1s53q18”>
bpmn:incoming SequenceFlow_0nwzn3j</bpmn:incoming>
bpmn:outgoing SequenceFlow_1l9f1gg</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id=“SequenceFlow_0nwzn3j” sourceRef=“StartEvent_1n9ynou” targetRef=“ExclusiveGateway_1s53q18” />
<bpmn:exclusiveGateway id=“ExclusiveGateway_00zak1r”>
bpmn:incoming SequenceFlow_1l9f1gg</bpmn:incoming>
bpmn:outgoing SequenceFlow_0abwjmw</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id=“SequenceFlow_1l9f1gg” sourceRef=“ExclusiveGateway_1s53q18” targetRef=“ExclusiveGateway_00zak1r” />
<bpmn:task id=“Task_04cy5wh”>
bpmn:incoming SequenceFlow_0abwjmw</bpmn:incoming>
</bpmn:task>
<bpmn:sequenceFlow id=“SequenceFlow_0abwjmw” sourceRef=“ExclusiveGateway_00zak1r” targetRef=“Task_04cy5wh” />
</bpmn:process>
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“Process_12g16aw”>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement=“StartEvent_1n9ynou”>
<dc:Bounds x=“152” y=“162” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“ExclusiveGateway_1s53q18_di” bpmnElement=“ExclusiveGateway_1s53q18” isMarkerVisible=“true”>
<dc:Bounds x=“205” y=“95” width=“50” height=“50” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_0nwzn3j_di” bpmnElement=“SequenceFlow_0nwzn3j”>
<di:waypoint x=“188” y=“180” />
<di:waypoint x=“230” y=“180” />
<di:waypoint x=“230” y=“145” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“ExclusiveGateway_00zak1r_di” bpmnElement=“ExclusiveGateway_00zak1r” isMarkerVisible=“true”>
<dc:Bounds x=“275” y=“95” width=“50” height=“50” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_1l9f1gg_di” bpmnElement=“SequenceFlow_1l9f1gg”>
<di:waypoint x=“255” y=“120” />
<di:waypoint x=“275” y=“120” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“Task_04cy5wh_di” bpmnElement=“Task_04cy5wh”>
<dc:Bounds x=“350” y=“80” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_0abwjmw_di” bpmnElement=“SequenceFlow_0abwjmw”>
<di:waypoint x=“325” y=“120” />
<di:waypoint x=“350” y=“120” />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
nikku
August 9, 2019, 6:55am
3
I suppose this is a bug report regarding our demo ?
This is expected behavior. A while ago we dropped the origin cross in favor of automatic align-to-origin on safe. Checkout the @bpmn-io/align-to-origin
utility for a demonstration.
nikku
August 9, 2019, 6:56am
4
As a side-comment, please properly format your code snippets (or upload diagrams as .bpmn
files).
<some>
<tags>
</some>
i have gone through the example given by you, the diagram has aligninig automatically to origin,
as per my requirement , this i created diagram somewhere around at (1200,800) , after save action diagram has movedto some where around ( 150,200 ) ,
I want to see the diagram at same position where I saved , can you please suggest any work around
Note: it worked fine in previous bpmn version (3.0.4)
I formateed this code using xml formatter before paste, some how still not pasted correctly, going forward i will upload using .bpmn format ,
sorry for inconvenience
nikku
Closed
August 12, 2019, 4:00pm
7
This topic was automatically closed after 3 days. New replies are no longer allowed.