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:
Fixed on master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/3bc1d0ec Thanks to Anton for catching the issue and coding most of the fix. Waiting for flags to commit to 6.0.x.
Cherry-picked to 6.0.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/d30d2d9b
Verified in BPMS 6.0.2.ER2 The example response for 'business-central/rest/task/query?status=inprogress' is: {"task-summary-list":["org.kie.services.client.serialization.jaxb.impl.task.JaxbTaskSummaryListResponse",{"index":null,"taskSummaryList":["java.util.ArrayList",[{"task-summary":{"id":24,"name":"Hello","subject":"","description":"","status":"InProgress","priority":0,"skipable":true,"actual-owner":"ibek","created-by":"ibek","created-on":["java.sql.Timestamp",1398780895584],"activation-time":["java.sql.Timestamp",1398780895584],"process-instance-id":139,"process-id":"org.jboss.qa.bpms.HumanTask","process-session-id":1,"parent-id":0}}]]}]}