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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.2
    • 6.0.0
    • jBPM Core
    • None
    • ER1
    • +
    • 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.

    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:

      Attachments

        Activity

          People

            marco.rietveld Marco Rietveld (Inactive)
            rhn-support-agiertli Anton Giertli
            Ivo Bek Ivo Bek
            Ivo Bek Ivo Bek
            ravindra.tubati, Tomáš Livora (Inactive), Vikram Goyal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: