As explained in NXP-27052, RouteNodeDetachedDocumentModel should export it with:
m3 fox@fox-laptop:~/workspace/nos/studio$ git diff diff --git i/studio/nuxeo-studio-ui/src/main/java/com/nuxeo/studio/core/builders/workflow/RouteNodeDetachedDocumentModel.java w/studio/nuxeo-studio-ui/src/main/java/com/nuxeo/studio/core/builders/workflow/RouteNodeDetachedDoc index 4fa1410c4..3b6b3f34b 100644 --- i/studio/nuxeo-studio-ui/src/main/java/com/nuxeo/studio/core/builders/workflow/RouteNodeDetachedDocumentModel.java +++ w/studio/nuxeo-studio-ui/src/main/java/com/nuxeo/studio/core/builders/workflow/RouteNodeDetachedDocumentModel.java @@ -135,6 +135,7 @@ public class RouteNodeDetachedDocumentModel extends RouteElementDetachedDocument setProperty("route_node", "taskY", node.getY()); setProperty("route_node", "start", node.isStartNode()); setProperty("route_node", "stop", node.isEndNode()); + setProperty("route_node", "fork", node.isForkNode()); if (node.isMergeNode()) { setProperty("route_node", "merge", "all");
Goal is that when I am exporting my studio project containing a graph with a fork node, the document.xml describing my fork node has the following line:
<rnode:fork><![CDATA[true]]></rnode:fork>
BTW, the following is probably needed too:
m3 fox@fox-laptop:~/workspace/nos/studio$ git diff diff --git i/studio/nuxeo-studio-ui/src/main/resources/data/schemas/route_node.xsd w/studio/nuxeo-studio-ui/src/main/resources/data/schemas/route_node.xsd index a6b0d2282..37642910f 100644 --- i/studio/nuxeo-studio-ui/src/main/resources/data/schemas/route_node.xsd +++ w/studio/nuxeo-studio-ui/src/main/resources/data/schemas/route_node.xsd @@ -12,6 +12,7 @@ <xs:element name="transitions" type="node:transitions" /> <xs:element name="start" type="xs:boolean" /> <xs:element name="stop" type="xs:boolean" /> + <xs:element name="fork" type="xs:boolean" /> <xs:element name="merge" type="xs:string" /> <!-- (null)/one/all --> <xs:element name="executeOnlyFirstTransition" type="xs:boolean" /> <xs:element name="subRouteModelExpr" type="xs:string" />
- is required by
-
NXP-27052 Workflow graph drawing is different in studio and webui
- Resolved