@ Override public List < ProcessInstance > getProcessInstances ( String masterRequestId , String processName ) throws ProcessException , DataAccessException { TransactionWrapper transaction = null ; EngineDataAccessDB edao = new EngineDataAccessDB ( ) ; try { Process procdef = ProcessCache . getProcess ( processName , 0 ) ; if ( procdef == null ) return null ; transaction = edao . startTransaction ( ) ; return edao . getProcessInstancesByMasterRequestId ( masterRequestId , procdef . getId ( ) ) ; } catch ( SQLException e ) { throw new ProcessException ( 0 , "Failed to remove event waits" , e ) ; } finally { edao . stopTransaction ( transaction ) ; } }
Returns the process instances by process name and master request ID .