cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the process instance end event?

natejh
Champ in-the-making
Champ in-the-making
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 .
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
You should only have one <extentionElements> under the <process> tag:


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

natejh
Champ in-the-making
Champ in-the-making
OK,thanks Smiley Wink