AnsweredAssumed Answered

Timer fired,but ActivitiEventListener not work

Question asked by xukai8817 on Jan 5, 2018
Latest reply on Jan 8, 2018 by xukai8817

I have two task.First,Task_1 complete and Task_2 started.Task_2 have a boundary Event.Like this:

 

<boundaryEvent id="boundarytimer" name="Timer" attachedToRef="task2" cancelActivity="true">
   <timerEventDefinition>
   <timeDuration>PT1M</timeDuration>
   </timerEventDefinition>
</boundaryEvent>

1min after,Task_2 back to Task_1.This job done by AsyncExceutor.

Question:

How can I listen task_2 back to task_1?AsyncExceutor didn't call onEvent() method after timer fired.And before timer fired,MyEventListener can listen all action.

I try :

@Component
public class MyEventListener implements ActivitiEventListener {

    @Override
    public void onEvent(ActivitiEvent event) {
        System.out.println("Listener: " + event.getType());
    }

    @Override
    public boolean isFailOnException() {
        System.out.println("Listener.isFailOnException()");
        return false;
    }
}

USE:

Spring-boot 1.4.2

activiti:5.22.0

 

Other,This action: ActivitiEventType.TIMER_FIRED.When did fired?

Outcomes