AnsweredAssumed Answered

Creating a process programatically, variables not being set.

Question asked by roadtripryan on Mar 29, 2013
Latest reply on Apr 3, 2013 by frederikheremans1
I'm using Activiti in a Grails application. So far, it is working very well, however I can't seem to get programatic process starting working. In my code I do:

Map<String, String> paramMap = new HashMap<String, String>();

… put parameters into the map ….

activitiService.runtimeService.startProcessInstanceById(params.processDefinitionKey, paramMap);

The process starts, but in the variables, the type is groovySerializable, the name is correct, but the text value is not filled in.

I am stumped as to why it is using groovySerializable as the type since it is a HashMap of <String, String>.  A gently poking of the activiti source code didn't turn anything up. Any idea what might be going on, or where to look? It must be getting the type incorrectly somewhere, but I can't see where, or how to force it to see my parameters as the strings they are.