Description of problem: When using the query API to retrieve variable information from process, apparently it does not work to search when using variables that are written using camel case (like docNumber). Version-Release number of selected component (if applicable): N/A How reproducible: Always Steps to Reproduce: 1. Using business central, create a process with a variable that uses only lower case words(such as name) and another one that uses camel case (such as docId) 2. Add a human task to this process and deploy it; 3. Make the process wait on the human task(not necessary, you can finish the process if you want) and try to query it using the variables and the rest query API Actual results: It will work for the lower case variable, for example: curl -u 'jesuino:redhat2014!' http://localhost:8080/business-central/rest/query/runtime/process?var_name=william <?xml version="1.0" encoding="UTF-8" standalone="yes"?><query-process-instance-result><processInstanceInfoList><process-instance><process-id>project1.proc_vars</process-id><id>1</id><state>1</state><parentProcessInstanceId>0</parentProcessInstanceId></process-instance><variables><name>name</name><string>william</string><lastModificationDate>2015-05-22T14:25:43.033-03:00</lastModificationDate></variables></processInstanceInfoList></query-process-instance-result> But will return nothing for the camel case variable even with the value meeting what was set in the process: $ curl -u 'jesuino:redhat2014!' http://localhost:8080/business-central/rest/query/runtime/process?var_docId=123 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> Expected results: It should bring results for both type of variables. Additional info: The query parameters will always be converted to lower case: https://github.com/droolsjbpm/droolsjbpm-integration/blob/4b0c075bb56b4fb1821d891a644913bef9833220/kie-remote/kie-remote-services/src/main/java/org/kie/remote/services/rest/QueryResourceImpl.java#L76 The documentation, however, has an example using camel case. See 16.1.4.4. Parameter Examples in https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_BPM_Suite/6.1/html/Development_Guide/chap-Remote_API.html#sect-The_REST_Query_API var_numCars=10 Perhaps this was not supposed to work, so we should update our documentation?
The workaround is to use the varid and varvalue parameters, for example: $ curl -u 'jesuino:redhat2014!' 'http://localhost:8080/business-central/rest/query/runtime/process?varid=docNum&varvalue=123'
Fixed. Commits: master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/f2f819fc
Verified on BPMS 6.2.0 ER2