I'm trying to set variables on a processInstance via the VariablesCommand executed remotely with CommandServiceBean, but it does'nt have any effect (variables are not set, no error in log).
I use the VariablesCommand in the following way:
Map variablesMap = new HashMap(); variablesMap.put("anzahlBier", "10"); VariablesCommand variablesCommand = new VariablesCommand(); variablesCommand.setTokenId(processInstance.getRootToken().getId()); variablesCommand.setVariables(variablesMap); remoteCommandService.execute(variablesCommand);
2007-09-07 15:18:25,921 DEBUG [org.jbpm.ejb.impl.CommandServiceBean] executing org.jbpm.command.VariablesCommand@1bf756b
...
2007-09-07 15:18:25,937 DEBUG [org.jbpm.ejb.impl.CommandServiceBean] handing over the command execution to the command service