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

Not possible to specify "union" attribute in Task query REST API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 6.x.x
    • Business Central
    • None

      Description of problem:

      $subj:

      When I specify multiple variables in the Query REST API, the response includes union of them. There is "union" attribute available, which could be set to false, so the response would include intersection of these variables. However, it is not possible to specify union=true nor union=false when using Query API / task / variables

      Version-Release number of selected component (if applicable):

      How reproducible:
      always

      Steps to Reproduce:
      http://localhost:8080/business-central/rest/query/runtime/task?vid=var1&vv=1&vid=var2&vv=2&union=false

      http://localhost:8080/business-central/rest/task/query?&vid=var1&vv=1&vid=var2&vv=2&union=false

      Both queries returns BAD REQUEST. The intention is to display

      All tasks which are bound to a process which fulfills this criteria:
      var1=1 && var2=2
      Instead (after removing union attr) it returns all tasks which are bound to a process which fulfills this criteria:
      var1= || var2=2

      and unfortunately this behavior is not changeable.. I have checked the implementation, and there does not appear to be any workaround for this (but I may have be wrong of course..)

      Actual results:

      It is not possible to set union attribute when using query api with task / variables over the REST
      Expected results:
      It is possible to set union attribute when using query api with task / variables over the REST

      Additional info:

              marco.rietveld Marco Rietveld (Inactive)
              rhn-support-agiertli Anton Giertli
              Lukáš Petrovický Lukáš Petrovický (Inactive)
              Lukáš Petrovický Lukáš Petrovický (Inactive)
              Alessandro Lazarotti, Anton Giertli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: