AnsweredAssumed Answered

Value in bpm_package.

Question asked by irene08 on Oct 12, 2012
Latest reply on Oct 15, 2012 by sujaypillai
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 &lt; 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

Outcomes