Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-2705

It is not possible to query tasks with status InProgress using REST API

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.2
    • Component/s: jBPM Core
    • Labels:
      None
    • Target Release:
    • Fix Build:
      ER1
    • Release Notes Text:
      Hide
      Using the REST API, it was not possible to execute any queries that had the status of InProgress. The server would return a BAD_REQUEST flag in response to the query with a message saying that the status “Inprogress is not a valid status type for a task”. This issue was caused due to the lack of a method that didn't transform the string input to the correct corresponding value of enum and has now been fixed by the addition of this method.
      Show
      Using the REST API, it was not possible to execute any queries that had the status of InProgress. The server would return a BAD_REQUEST flag in response to the query with a message saying that the status “Inprogress is not a valid status type for a task”. This issue was caused due to the lack of a method that didn't transform the string input to the correct corresponding value of enum and has now been fixed by the addition of this method.
    • QE Test Coverage:
      +

      Description

      Description of problem:
      Currently, it is not possible to call following REST API method
      http://localhost:8080/business-central/rest/task/query?status=inprogress

      The output is
      <response>
      <status>BAD_REQUEST</status>
      <url>
      /business-central/rest/task/query?status=inprogress
      </url>
      <error>Inprogress is not a valid status type for a task.</error>
      </response>

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

      How reproducible:
      always

      Steps to Reproduce:
      1. Deploy process with human task
      2. Clam/start this task so it will be in status InProgress
      3. Call http://localhost:8080/business-central/rest/task/query?status=inprogress

      Actual results:

      Error can be observed
      Inprogress is not a valid status type for a task.
      Expected results:

      List of task with status InProgress will be returned
      Additional info:

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                marco.rietveld Marco Rietveld
                Reporter:
                anton.giertli Anton Giertli
                Involved:
                Ravindra Tubati (Inactive), Tomáš Livora, Vikram Goyal
                Tester:
                Ivo Bek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: