SHARE
TWEET

First human task after the start task, ExecutionListener

a guest Mar 3rd, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
  2.           <activiti:field name="script">
  3.             <activiti:string><![CDATA[<import resource="/Company Home/DicionĂ¡rio de dados/Scripts/wf-termo-quitacao.js">
  4. //<import resource="/Company Home/Data Dictionary/Scripts/wf-termo-quitacao.js">
  5.  
  6. notificaUsuariosGrupo("GROUP_Impostos");]]></activiti:string>
  7.           </activiti:field>
  8.         </activiti:executionListener>
  9.         <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
  10.           <activiti:field name="script">
  11.             <activiti:string><![CDATA[<import resource="/Company Home/DicionĂ¡rio de dados/Scripts/wf-termo-quitacao.js">
  12. //<import resource="/Company Home/Data Dictionary/Scripts/wf-termo-quitacao.js">
  13.  
  14. execution.setVariable('hrfwf_calculoIptuOutcome', task.getVariable('hrfwf_calculoIptuOutcome'));
  15.  
  16. gravaHistorico(execution, task);]]></activiti:string>
  17.           </activiti:field>
  18.         </activiti:taskListener>
RAW Paste Data
Top