public class RulesEngineRouteModule extends Object implements RouteModule
RouteModule which executes the KRMS rules engine using the configured
RulesEngineExecutor. It then interprets those results and processes them, which may include instantiating
and delegating to another RouteModule. Currently, this implementation only supports PeopleFlow results returned from
KRMS and passes those off to the PeopleFlowRouteModule.| Constructor and Description |
|---|
RulesEngineRouteModule() |
public RulesEngineRouteModule()
public List<ActionRequestValue> findActionRequests(RouteContext context) throws Exception
RouteModuleThe list of requests returned should only contain root action requests (those with no parent).
findActionRequests in interface RouteModuleExceptionpublic ResponsibleParty resolveResponsibilityId(String responsibilityId) throws WorkflowException
RouteModuleThis method is intended to allow for the calling code to be able to "switch-out" one responsibility for another (in the case of a change to an assigned reponsibility).
Returning null from this method will indicate that the original responsibile party should remain unchanged. This is typically the recommended default for implementation of this method and covers most use cases.
resolveResponsibilityId in interface RouteModuleresponsibilityId - the id of the responsibility to be resolvedWorkflowExceptionpublic boolean isMoreRequestsAvailable(RouteContext context)
RouteModuleisMoreRequestsAvailable in interface RouteModulecontext - the route contextprotected EngineResults executeRulesEngine(RouteContext context, Engine rulesEngine)
protected void processEngineResults(RouteContext context, EngineResults engineResults)
protected RulesEngineExecutor loadRulesEngineExecutor(RouteContext context)
protected Engine getRulesEngine()
public PeopleFlowRouteModule getPeopleFlowRouteModule()
public void setPeopleFlowRouteModule(PeopleFlowRouteModule peopleFlowRouteModule)
public ExtensionRepositoryService getExtensionRepositoryService()
public void setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService)
public RouteNodeService getRouteNodeService()
public void setRouteNodeService(RouteNodeService routeNodeService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.