I’ve got a custom listener setup like so
@Component
public class Listener {
private static final Logger LOGGER = LoggerFactory.getLogger(Listener.class);
@EventListener
public void onTaskEvent(DelegateTask taskDelegate) {
LOGGER.info("Mutable Task Event: {} - Task: {} - Process Definition: {} - Process Instance: {}",
taskDelegate.getEventName(),
taskDelegate,
taskDelegate.getProcessDefinitionId(),
taskDelegate.getProcessInstanceId());
}
@EventListener
public void onTaskEvent(TaskEvent taskEvent) {
LOGGER.info("Immutable Task Event: {} - Task: {} - Process Definition: {} - Process Instance: {}",
taskEvent.getEventName(),
taskEvent.getProcessDefinitionId(),
taskEvent.getProcessInstanceId());
}
@EventListener
public void onExecutionEvent(DelegateExecution executionDelegate) {
LOGGER.info("Mutable Execution Event: {} - Process Definition: {} - Process Instance: {} - Activity: {}",
executionDelegate.getEventName(),
executionDelegate.getProcessDefinitionId(),
executionDelegate.getProcessInstanceId(),
executionDelegate.getCurrentActivityId());
}
@EventListener
public void onExecutionEvent(ExecutionEvent executionEvent) {
LOGGER.info("Immutable Execution Event: {} - Process Definition: {} - Process Instance: {} - Activity: {}",
executionEvent.getEventName(),
executionEvent.getProcessDefinitionId(),
executionEvent.getProcessInstanceId(),
executionEvent.getCurrentActivityId());
}
@EventListener
public void onHistoryEvent(HistoryEvent historyEvent) {
LOGGER.info("History Event: {} – String {} - Process Definition: {} - Process Instance: {} - Activity: {}",
historyEvent.getEventType(),
historyEvent.toString(),
historyEvent.getProcessDefinitionId(),
historyEvent.getProcessInstanceId(),
historyEvent.getExecutionId());
}
}
But I receive no task events for manual tasks, and no event at all when a comment is added to a manual task. Would a custom plugin give me access to these events, or is it no different to the spring event bridge?