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-10-2013 07:59 AM
04-22-2014 06:17 AM
04-24-2014 02:35 AM
12-10-2013 07:59 AM
12-10-2013 07:12 PM
12-10-2013 07:44 PM
12-11-2013 03:00 AM
12-11-2013 04:13 AM
/**
* Remove an existing child node of this node.
*
* Severs all parent-child relationships between two nodes.
* <p>
* The child node will be cascade deleted if one of the associations was the
* primary association, i.e. the one with which the child node was created.
*
* Beware: Any unsaved property changes will be lost when this is called. To preserve property changes call {@link save()} first.
*
* @param node child node to remove
*/
public void removeNode(ScriptNode node)
{
12-11-2013 08:34 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.