AnsweredAssumed Answered

Passing a Java List variable to a process

Question asked by jean-sébastien on Sep 27, 2011
Latest reply on Sep 27, 2011 by jean-sébastien

I'm trying to do a very basic thing : passing a java.util.List type to an Activi process. The process invokes a Java service task. So here is what I write :

Map<String, Object> variableMap = new HashMap<String, Object>();
variableMap.put("issuerIdList", new ArrayList<String>());
variableMap.put("dateFormat", new java.text.SimpleDateFormat());
// Start a process instance
String procId = runtimeService.startProcessInstanceByKey("ArchiveAndPurge", variableMap).getId();

I then get the following exception :

Incompatible type set on field declaration 'issuerIdList' for class net.atos.wlp.cardholderaccount.batches.archiveandpurge.InitializeBatch. Declared value has type org.activiti.engine.impl.el.JuelExpression, while expecting java.util.List

Anything wrong here I guess. What can I do ?

Many thanks.