KieCommands cmds = KieServices.Factory.get().getCommands(); List<Command<?>> batch = new ArrayList<Command<?>>(); Map<String, Object> inouts = getInputOutputMap(inputMessage, operation, runtime); for (Entry<String, Object> inout : inouts.entrySet()) { batch.add(cmds.newInsert(inout.getValue(), inout.getKey()));