Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5303

Field 'contentMap' from a task content accessed using REST is not being filled(or coming null)

XMLWordPrintable

    • NEW
    • ER5
    • NEW
    • Hide
      When trying to access the node (task) content through the REST API, the contentMap is missing in case of the contentMap being a map.

      To work around the issue, implement the following code:

      Map<String, Object> ret = content.getContentMap();
      if (ret == null) {
        ret = (Map<String, Object>) ContentMarshallerHelper.unmarshall(content.getSerializedContent(), null);
      }
      Show
      When trying to access the node (task) content through the REST API, the contentMap is missing in case of the contentMap being a map. To work around the issue, implement the following code: Map<String, Object> ret = content.getContentMap(); if (ret == null) {   ret = (Map<String, Object>) ContentMarshallerHelper.unmarshall(content.getSerializedContent(), null); }

      Description of problem:

      When accessing a Task Content, the contentMap is null;

      How reproducible:

      Always.

      Steps to Reproduce:

      Basically you can follow the steps from this article: https://access.redhat.com/solutions/887653

      You need to access an User task content using the URL: /task/

      {taskId}

      /content/

      Actual results:

      Content Map is missing:

      {"id":1,"serializedContent":"SERIALIZED CONTENT"}

      Expected results:

      It should come with values, for example:

      {"id":1,"serializedContent":null,"contentMap":

      {"GroupId":"adm","NodeName":"Aprovar!"}

      ,"content":"SERIALIZED CONTENT"}

            swiderski.maciej Maciej Swiderski (Inactive)
            swiderski.maciej Maciej Swiderski (Inactive)
            Tomáš Livora Tomáš Livora (Inactive)
            Linda Snyder Linda Snyder (Inactive)
            Alessandro Lazarotti, Anton Giertli, Ivo Bek, Kris Verlaenen, Maciej Swiderski (Inactive), Marco Rietveld (Inactive), Marek Baluch, Marek Czernek (Inactive), Rajesh Rajasekaran, Tomáš Livora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: