AnsweredAssumed Answered

How to capture the process instance end event?

Question asked by natejh on Jan 14, 2011
Latest reply on Jan 14, 2011 by natejh
Hi all,
I try

  <process id="executionListenersProcess">
 
    <extensionElements>
      <activiti:executionListener expression="${myTaskListener.t()}" event="start" />
    </extensionElements>
   
    <startEvent id="theStart" />
    
      ………
      ……….

    <endEvent id="theEnd" />
   
  </process>

It is ok;


  <process id="executionListenersProcess">
 
    <extensionElements>
      <activiti:executionListener expression="${myTaskListener.t()}" event="end" />
    </extensionElements>
   
    <startEvent id="theStart" />
    
      ………
      ……….

    <endEvent id="theEnd" />
   
  </process>

It is ok;


  <process id="executionListenersProcess">
 
    <extensionElements>
      <activiti:executionListener expression="${myTaskListener.t()}" event="start" />
    </extensionElements>
   
    <startEvent id="theStart" />
    
      ………
      ……….

    <endEvent id="theEnd" />
      <extensionElements>
            <activiti:executionListener expression="${myTaskListener.t()}" event="end" />
     </extensionElements>
  </process>

It runs error


  <process id="executionListenersProcess">
 
    <extensionElements>
      <activiti:executionListener expression="${myTaskListener.t()}" event="start" />
    </extensionElements>

     <extensionElements>
            <activiti:executionListener expression="${myTaskListener.t()}" event="end" />
     </extensionElements>
   
    <startEvent id="theStart" />
    
      ………
      ……….

    <endEvent id="theEnd" />

  </process>

It also runs error .

Outcomes