cancel
Showing results for 
Search instead for 
Did you mean: 

email on cancel workflow

krups
Champ in-the-making
Champ in-the-making
Hi All

Does anyone have idea about how to send an email to assignee when initiator cancel workflow?


Thanks in advance.
1 REPLY 1

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

cancel workflow means ending the workflow. If you want to send email on end you can do it from end event of process

<extensionElements>
            <activiti:executionListener event="end" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
        <activiti:field name="script">
          <activiti:string>
            /////////////////////////
           //email code goes here
           /////////////////////////
          </activiti:string>
        </activiti:field>
        <activiti:field name="runAs">
          <activiti:string>admin</activiti:string>
        </activiti:field>
      </activiti:executionListener>
    </extensionElements>