12-10-2013 05:14 AM
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
logger.log("TRYING TO REMOVE OLD (REJECTED) PACKAGE ITEM…");
execution.setVariable('bpm_package', null);
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
logger.log("TRYING TO SET NEW PACKAGE ITEM…");
execution.setVariable('bpm_package', task.getVariable('bpm_package'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
logger.log("TRYING TO REMOVE OLD (REJECTED) PACKAGE ITEM…");
execution.removeVariable('bpm_package');
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
logger.log("TRYING TO SET NEW PACKAGE ITEM…");
execution.setVariable('bpm_package', task.getVariable('bpm_package'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
logger.log("TRYING TO REMOVE OLD (REJECTED) PACKAGE ITEM…");
var input_package = execution.getVariable('bpm_package');
input_package.remove();
execution.setVariable('bpm_package', input_package);
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
logger.log("TRYING TO SET NEW PACKAGE ITEM…");
execution.setVariable('bpm_package', task.getVariable('bpm_package'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
12-12-2013 02:55 AM
12-12-2013 05:11 AM
09-10-2014 04:48 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.