AnsweredAssumed Answered

how to add listener to callActivity?

Question asked by ray1 on Sep 26, 2012
Latest reply on Sep 26, 2012 by ray1
I designed the subprocess ,and setting start event listener 。



<process id="called" name="calledprocess">
resId: <extensionElements>
  <activiti:executionListener event="start" class="com.ray.listener.StartEventListener" />
  <activiti:executionListener event="end" class="com.ray.listener.EndEventListener" />
  </extensionElements>
  <startEvent activiti:initiator="startUser" id="StartEvent1" name="start" />
  <endEvent id="EndEvent1" name="end1" />
<userTask id="UserTask1" name="finance audit">
  <documentation />
<extensionElements>
  <activiti:taskListener class="com.ray.listener.TaskCreateListener" event="create" />
  <activiti:taskListener class="com.ray.listener.TaskAssignListener" event="assignment" />
  <activiti:taskListener class="com.ray.listener.TaskCompleteListener" event="complete" />
  </extensionElements>
  </userTask>
<userTask id="UserTask2" name="cashier">
  <documentation />
<extensionElements>
  <activiti:taskListener class="com.ray.listener.TaskCreateListener" event="create" />
  <activiti:taskListener class="com.ray.listener.TaskAssignListener" event="assignment" />
  <activiti:taskListener class="com.ray.TaskCompleteListener" event="complete" />
  </extensionElements>
  </userTask>
  <sequenceFlow sourceRef="StartEvent1" targetRef="UserTask1" id="sequenceFlow1" name="" />
  <sequenceFlow sourceRef="UserTask1" targetRef="UserTask2" id="sequenceFlow2" name="" />
  <sequenceFlow sourceRef="UserTask2" targetRef="EndEvent1" id="sequenceFlow3" name="" />
  </process>


this process worked alone  is ok。the start event can be called.

but i use the definition as  a subprocess for a callActivity .

the event listener can't be called , why?

how can i add a listener for the callActivity ?

Outcomes