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