I want to hook events from UserTask as describing in this article: https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/the-spring-event-bridge/
My listener:
@Component
@Slf4j
public class MyListener {
public MyListener() {
log.debug("[MyListener] create");
}
@EventListener
public void onTaskEvent(DelegateTask taskDelegate) {
log.debug("[DelegateTask] id" + taskDelegate.getId());
}
@EventListener
public void onTaskEvent(TaskEvent taskEvent) {
log.debug("[TaskEvent] id" + taskEvent.getId());
}
}
I added properties:
camunda.bpm.eventing.execution=true
camunda.bpm.eventing.history=true
camunda.bpm.eventing.task=true
dependency:
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
<version>${camunda.spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>${springboot.version}</version>
</dependency>
....
and other
version: springboot = 2.2.5.RELEASE camunda = 7.13.0
when I start BPM process I don't view any log messages from onTaskEvent myListener, only "[MyListener] create." after start application. In cockpit I see started process and active task. If userTask already have one expression type taskListener in bpm, it is may be reason? what could be the problem? perhaps need some more data to understand it?
Thanks.