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 ; }
This method is used to wake up existing process instances .