code: protected Integer notifyProcesses(String eventName, Long eventInstId,
              String message, int delay)
      {
          Integer status;
          try {
              EventServices eventManager = ServiceLocator.getEventServices();
              status = eventManager.notifyProcess(
                      eventName,
                      eventInstId,            // document ID
                      message,
                      delay);
          } catch (Exception e) {
              logger.severeException(e.getMessage(), e);
              status = EventInstance.RESUME_STATUS_FAILURE;
          }
          return status;
      }
docs: This method is used to wake up existing process instances.
  
  @param eventName this is used to search for which process instances to inform
  @param eventInstId ID of the external event instance
  @param params parameters to be passed along with the RESUME message to the
  waiting activity instances.
  Important note: if the event may arrive before event wait registration,
  you should not attempt to use this field, as the data is not recorded in EVENT_LOG.
  @param recordInEventLog when true, the event is logged in EVENT_LOG. You will
  need to set it to true if the event may arrive before event wait registration.
  When it is true, you should not attempt to use the parameters params,
  as those are not available when the event arrives prior to event wait registration.
  The alternative is to use external event table to record the message,
  and use that message to populate variable instances in the activity to be resumed.
  
  @return Can be EventWaitInstance.RESUME_STATUS_SUCCESS,
  EventWaitInstance.RESUME_STATUS_PARTIAL_SUCCESS,
  EventWaitInstance.RESUME_STATUS_NO_WAITERS,
  or EventWaitInstance.RESUME_STATUS_FAILURE