code: public boolean resumeWaiting(InternalEvent eventMessageDoc) throws ActivityException {
          if (WorkStatus.STATUSNAME_COMPLETED.equalsIgnoreCase(eventMessageDoc.getCompletionCode())){
              setReturnCode(null);
              return true;
          }
          EventWaitInstance received = registerWaitEvents(true, true);
          if (received!=null) {
              setReturnCodeAndExitStatus(received.getCompletionCode());
              processMessage(getExternalEventInstanceDetails(received.getMessageDocumentId()));
              return handleCompletionCode();
          } else {
              setReturnCode(null);
              return true;
          }
      }
docs: Typically you will not override this method