@Override
 public void abortedOperation(final int sessionId) {
   workflowEventManager.purgeEvents(sessionId);
 }
 @Override
 public void activityInstanceAdvanced(final int sessionId) throws CMWorkflowException {
   workflowEventManager.processEvents(sessionId);
 }
 @Override
 public void processInstanceResumed(final int sessionId) throws CMWorkflowException {
   workflowEventManager.processEvents(sessionId);
 }
 @Override
 public void activityInstanceAborted(final int sessionId) {
   workflowEventManager.purgeEvents(sessionId);
 }
 @Override
 public void processInstanceStarted(final int sessionId) {
   workflowEventManager.purgeEvents(sessionId);
 }