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

Fix worklow graph invalid json

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2-SNAPSHOT
    • Fix Version/s: 7.2
    • Component/s: Workflow
    • Tags:
    • Sprint:
      nxNag Sprint 7.2.1

      Description

      When querying for

      http://localhost:8080/nuxeo/site/api/v1/workflowModel/SerialDocumentReview/graph
      

      the returned json is invalid:

      {"entity-type":"graph"{"nodes":[{"isStartNode":true,"isEndNode":false,"isMerge":false,"isMultiTask":false,"hasSubWorkflow":false,"startNode":true,"endNode":false,"title":"Start","x":440,"y":0,"id":"Task375f","state":"validated"},{"isStartNode":false,"isEndNode":false,"isMerge":false,"isMultiTask":false,"hasSubWorkflow":false,"startNode":false,"endNode":false,"title":"Choose participants","x":420,"y":100,"id":"Task38e","state":"validated"},{"isStartNode":false,"isEndNode":false,"isMerge":false,"isMultiTask":false,"hasSubWorkflow":false,"startNode":false,"endNode":false,"title":"Update the document","x":620,"y":280,"id":"Task542","state":"validated"},{"isStartNode":false,"isEndNode":true,"isMerge":false,"isMultiTask":false,"hasSubWorkflow":false,"startNode":false,"endNode":true,"title":"Stop","x":440,"y":640,"id":"Task5c1","state":"validated"},{"isStartNode":false,"isEndNode":false,"isMerge":false,"isMultiTask":false,"hasSubWorkflow":false,"startNode":false,"endNode":false,"title":"Validate the document","x":240,"y":280,"id":"Task6d8","state":"validated"}],"transitions":[{"nodeSourceId":"Task375f","nodeTargetId":"Task38e","label":"","path":[]},{"nodeSourceId":"Task38e","nodeTargetId":"Task5c1","label":"Cancelation","path":[]},{"nodeSourceId":"Task38e","nodeTargetId":"Task6d8","label":"Review start","path":[{"x":160.0,"y":0.0},{"x":160.0,"y":20.0},{"x":0.0,"y":20.0},{"x":0.0,"y":100.0}]},{"nodeSourceId":"Task542","nodeTargetId":"Task5c1","label":"Cancelation","path":[{"x":200.0,"y":0.0},{"x":200.0,"y":200.0},{"x":0.0,"y":200.0},{"x":0.0,"y":280.0}]},{"nodeSourceId":"Task542","nodeTargetId":"Task6d8","label":"Document re-submission","path":[{"x":360.0,"y":80.0},{"x":360.0,"y":117.0},{"x":122.0,"y":117.0},{"x":122.0,"y":-18.0},{"x":0.0,"y":-18.0},{"x":0.0,"y":0.0}]},{"nodeSourceId":"Task6d8","nodeTargetId":"Task5c1","label":"End","path":[{"x":0.0,"y":0.0},{"x":0.0,"y":201.0},{"x":180.0,"y":201.0},{"x":180.0,"y":280.0}]},{"nodeSourceId":"Task6d8","nodeTargetId":"Task6d8","label":"Rejection","path":[{"x":0.0,"y":80.0},{"x":0.0,"y":180.0},{"x":-203.0,"y":180.0},{"x":-203.0,"y":-40.0},{"x":20.0,"y":-40.0},{"x":20.0,"y":0.0}]},{"nodeSourceId":"Task6d8","nodeTargetId":"Task542","label":"Document update request","path":[{"x":0.0,"y":80.0},{"x":0.0,"y":148.0},{"x":237.0,"y":148.0},{"x":237.0,"y":-30.0},{"x":360.0,"y":-30.0},{"x":360.0,"y":0.0}]},{"nodeSourceId":"Task6d8","nodeTargetId":"Task6d8","label":"Validation","path":[{"x":0.0,"y":80.0},{"x":0.0,"y":148.0},{"x":-93.0,"y":148.0},{"x":-93.0,"y":-19.0},{"x":40.0,"y":-19.0},{"x":40.0,"y":0.0}]}]}}
      
      Parse error on line 2:
      ...ntity-type": "graph"{        "nodes": [
      -----------------------^
      Expecting '}', ':', ',', ']'
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: