Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1210257

Summary: Using 'var' parameter in Remote Query API results in exception
Product: [Retired] JBoss BPMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: Business CentralAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Ivo Bek <ibek>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: ibek, kverlaen
Target Milestone: DR1   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:12:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anton Giertli 2015-04-09 09:52:48 UTC
Description of problem:
As per
https://github.com/mrietveld/droolsjbpm-integration/wiki/jBPM-REST-Query-API

it should be possible to query tasks/processes based on the process variable id / value.

However executing following query :

http://localhost:8080/business-central/rest/query/runtime/task?var_pVar=pValue

results in exception.

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

BPMS 6.1.0 CR2
How reproducible:
always

Steps to Reproduce:
1. Create and deploy following BPMN process into the business-central
START->HT->END
process variable: pVar
2. Start this process and set 'pValue' as a value of variable 'pVar'
3. Execute this query [GET] rest query:
http://localhost:8080/business-central/rest/query/runtime/task?var_pVar=pValue

Actual results:

It is not possible to execute rest query which includes variable parameter.
Expected results:
It is possible to execute rest query which includes variable parameter.


Additional info:

This is the response from the server
http://pastebin.com/95w3wdCS

Comment 2 Anton Giertli 2015-04-09 10:39:38 UTC
Another corrupted endpoint:

http://localhost:8080/business-central/rest/query/runtime/task?potentialowner=anton

generates following output:
http://pastebin.com/EtGmkBZj

Comment 3 Ivo Bek 2015-04-09 11:08:22 UTC
I reproduced the issue as well but only for quering tasks by vars. Quering processes by vars have been already covered by the tests and works.

The workaround is to query varid and varvalue in one request:

http://localhost:8080/business-central/rest/query/runtime/task?taskstatus=InProgress&varid=userName&varvalue=Ivo&

Comment 4 Marco Rietveld 2015-04-10 10:11:33 UTC
Fixed on master. Commits:

master: 
https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/7ade2963
https://github.com/droolsjbpm/droolsjbpm-integration/commit/311eff24
https://github.com/droolsjbpm/jbpm/commit/5e4f501a

Setting to modified because this has a 6.2.0 flag (and thus will not be cherry-picked to community 6.2.x).

Comment 5 Ivo Bek 2015-08-28 14:57:33 UTC
*** Bug 1257992 has been marked as a duplicate of this bug. ***

Comment 6 Ivo Bek 2015-09-25 10:32:28 UTC
Verified in BPM Suite 6.2.0.ER3