Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5292

Add missing fork info on workflow node export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.0
    • Component/s: Workflow
    • Sprint:
      NOS 11.1.8 - 2019-05 01, NOS 11.1.9 - 2019-05 02, NOS 11.1.10 - 2019-06 01, NOS 11.1.11 - 2019-06 02
    • Story Points:
      2

      Description

      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" />
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 30 minutes
                  3d 2h 30m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.