I’m trying to create a group of condition variables using a Map<String, Boolean> but I get the following error:
“The method setVariables(Map<String,Object>) in the type ConditionEvaluationBuilder is not applicable for the arguments (Map<String,Boolean>)Java(67108979)”
This is what I’m doing:
Map<String,Boolean> estadoDespachos = new HashMap<String,Boolean>();
estadoDespachos.put("disupAssinado", false);
estadoDespachos.put("diretAssinado", false);
estadoDespachos.put("presidenciaAssinado", false);
List<ProcessInstance> instances = runtimeService
.createConditionEvaluation()
.setVariables(estadoDespachos)
.evaluateStartConditions();