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() |
Modifier and Type | Method and Description |
---|---|
protected EngineResults |
executeRulesEngine(RouteContext context,
Engine rulesEngine) |
List<ActionRequestValue> |
findActionRequests(RouteContext context)
Generate action requests for the given RouteContext.
|
ExtensionRepositoryService |
getExtensionRepositoryService() |
PeopleFlowRouteModule |
getPeopleFlowRouteModule() |
RouteNodeService |
getRouteNodeService() |
protected Engine |
getRulesEngine() |
boolean |
isMoreRequestsAvailable(RouteContext context)
Returns true if this RouteModule has more requests available which it can generate.
|
protected RulesEngineExecutor |
loadRulesEngineExecutor(RouteContext context) |
protected void |
processEngineResults(RouteContext context,
EngineResults engineResults) |
ResponsibleParty |
resolveResponsibilityId(String responsibilityId)
The route module will re-resolve the given responsibilityId and return an object that contains the key to either
a user, group, or role.
|
void |
setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService) |
void |
setPeopleFlowRouteModule(PeopleFlowRouteModule peopleFlowRouteModule) |
void |
setRouteNodeService(RouteNodeService routeNodeService) |
public RulesEngineRouteModule()
public List<ActionRequestValue> findActionRequests(RouteContext context) throws Exception
RouteModule
The list of requests returned should only contain root action requests (those with no parent).
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–2015 The Kuali Foundation. All rights reserved.