Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14491

Fix json export of automation chains in doc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 5.9.3
    • Fix Version/s: None
    • Component/s: Automation

      Description

      When looking at doc on http://localhost:8080/nuxeo/site/automation/doc, chains are also listed as operations.

      For chains like http://localhost:8080/nuxeo/site/automation/doc?id=cancelWorkflow, the doc specifies operations that are part of the chain (without parameter values), but the json export at http://localhost:8080/nuxeo/site/automation/cancelWorkflow does not list them:

      {
        "id" : "cancelWorkflow",
        "label" : "cancelWorkflow",
        "category" : "chain",
        "requires" : null,
        "description" : "",
        "url" : "cancelWorkflow",
        "signature" : [ "document", "document", "documents", "documents" ],
        "params" : [ ],
      }
      

      Expected output:

      {
        "id" : "cancelWorkflow",
        "label" : "cancelWorkflow",
        "category" : "chain",
        "requires" : null,
        "description" : "",
        "url" : "cancelWorkflow",
        "signature" : [ "document", "document", "documents", "documents" ],
        "params" : [ ],
        "operations" : [ {
          "params" : [ ],
          "id" : "Context.FetchDocument"
        }, {
          "params" : [ {
            "name" : "name",
            "value" : "isParallelWF",
            "type" : "string",
            "map" : null
          }, {
            "name" : "value",
            "value" : "Event.context.getProperty(\"wfName\").equals(\"wf.parallelDocumentReview.ParallelDocumentReview\")?true:false",
            "type" : "object",
            "map" : null
          } ],
          "id" : "Context.SetVar"
        }, {
          "params" : [ {
            "name" : "id",
            "value" : "isParallelWF?\"Document.Unlock\":\"voidChain\"",
            "type" : "string",
            "map" : null
          }, {
            "name" : "isolate",
            "value" : "false",
            "type" : "boolean",
            "map" : null
          } ],
          "id" : "Context.RunOperation"
        } ]
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atchertchian Anahide Tchertchian
                Reporter:
                atchertchian Anahide Tchertchian
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: