private static WorkflowProcessInstance startProcess(StatefulKnowledgeSession ksession, String color) {
Map<String, Object> vars = new HashMap<String, Object>();
vars.put("color", color);
WorkflowProcessInstance p1 = (WorkflowProcessInstance) ksession.startProcess("com.sample.ruleflow", vars);
return p1;
}
I can count them:
select
count(*)
from
ProcessInstanceInfo
However I'm stymied as to counting process instances with a given color, as there appears to be no join column between ProcessInstanceInfo and VariableInstanceInfo.
Can such a query be written?
Thanks.