09-25-2012 05:48 AM
09-25-2012 07:32 AM
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
//…add approved aspecct
bpm_package.children[0].addAspect("cm:approved");
bpm_package.children[0].properties["cm:approvedAt"]= new Date();
bpm_package.children[0].save();
</activiti:string>
</activiti:field>
</activiti:taskListener>
More about Alfresco & Workflows: http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article-2ed.pdf09-26-2012 09:01 AM
08-25-2015 01:29 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.