I have the following code
@Component("endProcessExecutionListener")
public class EndProcessExecutionListener implements ExecutionListener {
@Value("${some.path.key.to.value}")
private String keyValue;
@Override
public void notify(DelegateExecution execution) {
......
}
The problem is keyValue is null at runtime.
Is it possible to wire in config values to ExecutionListeners as I am able to do so to Delegates.
I should add the the listener is a process execution listener that is suppose to fire once at process end:
<process id="local" name="Lokal" isExecutable="true">
<extensionElements>
<flowable:executionListener
event="end"
class="com.example.app.delegates.listeners.EndProcessExecutionListener"
/>
</extensionElements>
<startEvent id="eventStart"...>
..........
</process>