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.
import org.activiti.engine.impl.event.EventHandler; import org.activiti.engine.impl.interceptor.CommandContext; import org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity; public class CustomEventHandler implements EventHandler { @Override public String getEventHandlerType() { // TODO event types? who know? return null; } @Override public void handleEvent(EventSubscriptionEntity eventSubscription, Object payload, CommandContext commandContext) { // TODO print … } }
<br>public class SignalEventHandler extends AbstractEventHandler {<br> <br> public static final String EVENT_HANDLER_TYPE = "signal";<br><br> public String getEventHandlerType() {<br> return EVENT_HANDLER_TYPE;<br> }<br><br>}<br>