As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public class TaskObserverActiviti { @Inject private BusinessProcess businessProcess; public void onProcessEvent(@Observes BusinessProcessEvent businessProcessEvent) { if (businessProcessEvent.getType() == BusinessProcessEventType.START_ACTIVITY) { Task task = businessProcess.getTask(); // task is always NULL } } }