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
RouteModule
findActionRequests
in interface RouteModule
Exception
public ResponsibleParty resolveResponsibilityId(String responsibilityId) throws WorkflowException
RouteModule
This 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 RouteModule
responsibilityId
- the id of the responsibility to be resolvedWorkflowException
public boolean isMoreRequestsAvailable(RouteContext context)
RouteModule
isMoreRequestsAvailable
in interface RouteModule
context
- 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.