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