Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2911

Null fields should not be included in JSON response.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 7.8.0.GA
    • 7.7.0.GA
    • Kie-Server
    • 2020 Week 22-24 (from May 25)

      Customer is using below REST API to list task details

      http://localhost:8080/kie-server/services/rest/server/queries/tasks/instances/TaskID
      

      Response:

      {
        "task-id" : 1,
        "task-priority" : 0,
        "task-name" : "Task",
        "task-subject" : null,
        "task-description" : "",
        "task-type" : null,
        "task-form" : null,
        "task-status" : "Reserved",
        "task-actual-owner" : "bpmsAdmin",
        "task-created-by" : "",
        "task-created-on" : {
        "java.util.Date" : 1587647388243
      },
        "task-activation-time" : {
        "java.util.Date" : 1587647388243
      },
        "task-expiration-time" : null,
        "task-skippable" : null,
        "task-workitem-id" : 1,
        "task-process-instance-id" : 1,
        "task-parent-id" : null,
        "task-process-id" : "HT.T1",
        "task-container-id" : "HT_1.0.0-SNAPSHOT",
        "sla-compliance" : null,
        "sla-due-date" : null,
        "task-pot-owners" : null,
        "task-excl-owners" : null,
        "task-business-admins" : null,
        "task-input-data" : null,
        "task-output-data" : null
      }
      

      Paramter like ' "task-business-admins" : null,' is confusing for customer. It will be great if not include null fields in the response.

            ftirados Francisco Javier Tirado Sarti
            rhn-support-abhumbe Abhijit Humbe
            Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
            Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: