Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.kew.engine;
 
An implementation of the WorkflowEngineFactory.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 
     private ParameterService parameterService;
    
    
    
Ensures that all dependencies were injected into this factory.

 
     @Override
     public void afterPropertiesSet() {
         if ( == null) {
             throw new IllegalStateException("routeNodeService not properly injected, was null.");
         }
         if ( == null) {
             throw new IllegalStateException("routeHeaderService not properly injected, was null.");
         }
         //if (parameterService == null) {
         //    throw new IllegalStateException("parameterService not properly injected, was null.");
         //}
     }
    
    
 
     @SuppressWarnings("unchecked")
     @Override
     public <E extends WorkflowEngine> E newEngine(OrchestrationConfig config) {
         switch (config.getCapability()) {
             case :
                 return (E) new StandardWorkflowEngine(config);
             case :
                 return (E) new BlanketApproveEngine(config);
             case :
                 return (E) new SimulationEngine(config);
         }
         
         return null;
     }
    
    

Returns:
the routeNodeService
 
     public RouteNodeService getRouteNodeService() {
         return this.;
     }


    

Parameters:
routeNodeService the routeNodeService to set
 
     public void setRouteNodeService(RouteNodeService routeNodeService) {
         this. = routeNodeService;
     }


    

Returns:
the routeHeaderService
 
         return this.;
     }


    

Parameters:
routeHeaderService the routeHeaderService to set
    public void setRouteHeaderService(RouteHeaderService routeHeaderService) {
        this. = routeHeaderService;
    }


    

Returns:
the parameterService
        if (this. == null) {
            this. = CoreFrameworkServiceLocator.getParameterService();
        }
        return this.;
    }


    

Parameters:
parameterService the parameterService to set
    public void setParameterService(ParameterService parameterService) {
        this. = parameterService;
    }
New to GrepCode? Check out our FAQ X