How to Create a Process Event Listener for jBPM

import org.drools.event.process.ProcessCompletedEvent;
import org.drools.event.process.ProcessEventListener;
import org.drools.event.process.ProcessNodeLeftEvent;
import org.drools.event.process.ProcessNodeTriggeredEvent;
import org.drools.event.process.ProcessStartedEvent;
import org.drools.event.process.ProcessVariableChangedEvent;

public final class SampleProcessEventListener implements ProcessEventListener {

  @Override
  public void afterNodeLeft(final ProcessNodeLeftEvent event) {
  }

  @Override
  public void afterNodeTriggered(final ProcessNodeTriggeredEvent event) {
  }

  @Override
  public void afterProcessCompleted(final ProcessCompletedEvent event) {
  }

  @Override
  public void afterProcessStarted(final ProcessStartedEvent event) {
  }

  @Override
  public void afterVariableChanged(final ProcessVariableChangedEvent event) {
  }

  @Override
  public void beforeNodeLeft(final ProcessNodeLeftEvent event) {
  }

  @Override
  public void beforeNodeTriggered(final ProcessNodeTriggeredEvent event) {
  }

  @Override
  public void beforeProcessCompleted(final ProcessCompletedEvent event) {
  }

  @Override
  public void beforeProcessStarted(final ProcessStartedEvent event) {
  }

  @Override
  public void beforeVariableChanged(final ProcessVariableChangedEvent event) {
  }
  
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s