Description of problem: I have a process definition with 2 process variables, var1 and var2. I start few process instances with different values for var1 and var2 and when I want to query one particular process instance with var1=value1 and var2=value2 I do the following request: http://localhost:8080/business-central/rest/query/runtime/process?processinstancestatus=1&var_var1=value1&var_var2=value2& However, I get no results from this request: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><query-process-instance-result/> I will add a comment linking to the reproducer. Requesting blocker since this issue needs to be fixed in regard to BPMSPL-84.
The preliminary documentation that I added here: - https://github.com/mrietveld/droolsjbpm-integration/wiki/jBPM-Rest-Query-API states the following: "all of the query parameters described below can be entered multiple times: when multiple values are given for the same query parameter, the query will then search for any results that match one or more of the values entered." which supports this bug request. However, multiple "variable value" parameters require that the underlying query functionality supports "grouping" because the "variable value" parameter (i.e. <variableName> = <string> AND <variableValue> = <string>) actually describes multiple criteria. Adding support for "grouping" criteria is non-trivial.
Probably, this will be supported in jBPM 7 - when advanced querying is implemented
Reopened, since I'm working on implementing this for community 6.4.
*** Bug 1257956 has been marked as a duplicate of this bug. ***
PR submitted: https://github.com/droolsjbpm/droolsjbpm-integration/pull/255
Fixed. Commits: master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/488d7447
Verified on BPM Suite 6.3.0 ER2