AnsweredAssumed Answered

How to use interface EventHandler?

Question asked by kafeitu on Oct 12, 2012
Latest reply on Oct 12, 2012 by kafeitu

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 …
   }
}


Why the interface  of org.activiti.engine.impl.event.EventHandler has't javadoc?

Outcomes