Hi!
Good Day!
Do I need to set a value in bpm_package or does it have a value already? I added this script in bpmn20.xml.
activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
if (bpm_package != null && bpm_package.children != null)
{
var i = 0;
for (i = 0; i < bpm_package.children.length; i++)
{
var document = bpm_package.children;
document.properties["cm:summary"] = "Approved";
document.save();
}
}
</activiti:string>
</activiti:field>
</activiti:taskListener>
Thank you,
Irene