protected Process getSubflow ( Microservice service ) throws ActivityException { AssetVersionSpec spec = new AssetVersionSpec ( service . getSubflow ( ) ) ; try { Process process = ProcessCache . getProcessSmart ( spec ) ; if ( process == null ) throw new ActivityException ( "Subflow not found: " + service . getSubflow ( ) ) ; return process ; } catch ( DataAccessException ex ) { throw new ActivityException ( ex . getMessage ( ) , ex ) ; } }
Can be a process or template .