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

Advanced Queries: input data field comes with wrong values in response

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.1.Final
    • None
    • Runtime Engine
    • None
    • NEW
    • NEW
    • 2017 Week 36-37, 2017 Week 38-39

      When testing Advanced Queries, BBVA noticed that input data field comes with wrong values: it contains some data related to the query params we send in the payload. Here is an example of a REST call (task retrieved has a input string and two output strings as variables):

      [POST] http://localhost:8080/kie-execution-server/services/rest/server/tasks/instances/filtered-data?&page=0&pageSize=0

      PAYLOAD:
      {
      "order-by" : null,
      "order-asc" : false,
      "query-params" : [

      { "cond-column" : "ACTUALOWNER", "cond-operator" : "EQUALS_TO", "cond-values" : [ "bpmsAdmin" ] }

      ,

      { "cond-column" : "STATUS", "cond-operator" : "EQUALS_TO", "cond-values" : [ "Reserved" ] }

      ]
      }

      RESPONSE:
      {
      "task-instance" : [ {
      "task-id" : 8,
      "task-priority" : 0,
      "task-name" : "Task 1",
      "task-subject" : null,
      "task-description" : "",
      "task-type" : null,
      "task-form" : null,
      "task-status" : "Reserved",
      "task-actual-owner" : "bpmsAdmin",
      "task-created-by" : "bpmsAdmin",
      "task-created-on" :

      {"java.util.Date":1504797936272}

      ,
      "task-activation-time" :

      {"java.util.Date":1504797936272}

      ,
      "task-expiration-time" : null,
      "task-skippable" : null,
      "task-workitem-id" : null,
      "task-process-instance-id" : 8,
      "task-parent-id" : null,
      "task-process-id" : "TestProject.TestProcess",
      "task-container-id" : "TestProject_1.0.3",
      "task-pot-owners" : null,
      "task-excl-owners" : null,
      "task-business-admins" : null,
      "task-input-data" :

      { "STATUS" : "Reserved", "ACTUALOWNER" : "bpmsAdmin" }

      ,
      "task-output-data" : null
      } ]
      }

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-jizuzqui Jaime Izuzquiza (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: