AnsweredAssumed Answered

Creating a bpm_package in a listener

Question asked by mstein on Aug 23, 2012
Latest reply on Nov 14, 2013 by sayal
I'm trying to get around the bpm_package being mandatory by creating an empty back with start execution listener:

var node =workflow.createPackage();
execution.setVariable('bpm_package', node);

This complains that:

Caused by: org.activiti.engine.ActivitiException: Passed value is not an instance of ActivitiScriptNode, cannot set variable value.
   at org.alfresco.repo.workflow.activiti.variable.ScriptNodeVariableType.setValue(ScriptNodeVariableType.java:76)

Any ideas?

Thanks in advance,

Max

Outcomes