batch.add(cmds.newInsert(inout.getValue(), inout.getKey()));
}
List<Object> facts = getInputOnlyList(inputMessage, operation, session);
batch.add(cmds.newInsertElements(facts));
batch.add(cmds.newFireAllRules());
BatchExecutionCommand exec = cmds.newBatchExecution(batch, KnowledgeConstants.RESULT);
ExecutionResults results = session.getStateless().execute(exec);
for (String id : inouts.keySet()) {
expressionVariables.put(id, results.getValue(id));
}
expressionVariables.putAll(getGlobalVariables(session));