Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-155

Fix Task deserialization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.3.0
    • Component/s: REST

      Description

      Even if we have some integration tests on Tasks, we have an issue on the comment deserialisation part.

      Currently the Task bean declares comments as List<String> whereas it's a complex object as below:

      {
        "entity-type": "task",
        "id": "bf8b6a82-495b-47c5-a327-04a57ef995d0",
        "name": "wf.serialDocumentReview.chooseParticipants",
        "workflowInstanceId": "00ea5eb4-d591-4cd6-b76c-e73d1f3a99bd",
        "workflowModelName": "SerialDocumentReview",
        "state": "ended",
        "directive": "wf.serialDocumentReview.pleaseSelect",
        "created": "2018-06-11T14:32:38.912Z",
        "dueDate": "2018-06-16T14:32:38.840Z",
        "nodeName": "Task38e",
        "targetDocumentIds": [
          {
            "id": "62c02cf6-4891-400d-a687-e544fc081706"
          }
        ],
        "actors": [
          {
            "id": "Administrator"
          }
        ],
        "comments": [
          {
            "author": "Administrator",
            "text": "comment",
            "date": "2018-06-11T14:32:39.126Z"
          }
        ],
        "variables": {
          "comment": "comment",
          "participants": [
            "user:Administrator"
          ],
          "validationOrReview": "simpleReview"
        },
        "taskInfo": {
          "taskActions": [
            {
              "name": "cancel",
              "url": "http://localhost:8080/nuxeo/api/v1/task/bf8b6a82-495b-47c5-a327-04a57ef995d0/cancel",
              "label": "wf.serialDocumentReview.cancel"
            },
            {
              "name": "start_review",
              "url": "http://localhost:8080/nuxeo/api/v1/task/bf8b6a82-495b-47c5-a327-04a57ef995d0/start_review",
              "label": "wf.serialDocumentReview.startReview"
            }
          ],
          "layoutResource": {
            "name": "Task38e@taskLayout",
            "url": "http://localhost:8080/nuxeo/site/layout-manager/layouts/?layoutName=Task38e@taskLayout"
          },
          "schemas": [
            {
              "name": "dublincore",
              "url": "http://localhost:8080/nuxeo/api/v1/config/schemas/dublincore"
            },
            {
              "name": "var_global_Task38e",
              "url": "http://localhost:8080/nuxeo/api/v1/config/schemas/var_global_Task38e"
            },
            {
              "name": "route_node",
              "url": "http://localhost:8080/nuxeo/api/v1/config/schemas/route_node"
            },
            {
              "name": "var_Task38e",
              "url": "http://localhost:8080/nuxeo/api/v1/config/schemas/var_Task38e"
            }
          ]
        }
      }
      

      Fix this deserialisation issue and add an integration test.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1 hour
                  1h