Using Spring Eventing Bridge for Execution events

Hi!

In the project we want to use Spring eventing mechanism for listening to process events. When listening to the execution event, we only need to be notified when the process instance is started (the same behavior when overriding ExecutionListener like here CamundaExample). However, seems that execution event is published every time when the child execution is started or ended. So is there any way to check if the execution has started on process instance level?

Here is my code:

@Component
class MyExecutionListener {

@EventListener(condition = "#execution.eventName.equals('start')")
fun start(execution: DelegateExecution) {
    println(execution.currentActivityId)
}

}