org.kuali.rice.kew.routemodule
Class FlexRMAdapter

java.lang.Object
  extended by org.kuali.rice.kew.rule.FlexRM
      extended by org.kuali.rice.kew.routemodule.FlexRMAdapter
All Implemented Interfaces:
RouteModule
Direct Known Subclasses:
InlineRequestsRouteModule

public class FlexRMAdapter
extends FlexRM
implements RouteModule

Adapts FlexRM to the RouteModule interface.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
FlexRM, RouteModule

Field Summary
 
Fields inherited from class org.kuali.rice.kew.rule.FlexRM
DEFAULT_RULE_SELECTOR
 
Constructor Summary
FlexRMAdapter()
           
 
Method Summary
 List<ActionRequestValue> findActionRequests(RouteContext context)
          Generate action requests for the given RouteContext.
 boolean isMoreRequestsAvailable(RouteContext context)
          Returns true if this RouteModule has more requests available which it can generate.
 String toString()
           
 
Methods inherited from class org.kuali.rice.kew.rule.FlexRM
getActionRequests, getActionRequests, getNumberOfMatchingRules, getRuleService, loadRuleSelector, makeActionRequests, resolveResponsibilityId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kew.routemodule.RouteModule
resolveResponsibilityId
 

Constructor Detail

FlexRMAdapter

public FlexRMAdapter()
Method Detail

findActionRequests

public List<ActionRequestValue> findActionRequests(RouteContext context)
                                            throws Exception
Description copied from interface: RouteModule
Generate action requests for the given RouteContext.

Specified by:
findActionRequests in interface RouteModule
Returns:
A List of the generated ActionRequestValue objects.
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

isMoreRequestsAvailable

public boolean isMoreRequestsAvailable(RouteContext context)
Description copied from interface: RouteModule
Returns true if this RouteModule has more requests available which it can generate. This method will only be called after the first set of action requests returned by the first invocation of findActionRequests have been fully activated. If this method returns true, findActionRequests will be invoked again and those requests will all be activated before the cycle continues until this method returns false;

Specified by:
isMoreRequestsAvailable in interface RouteModule
Parameters:
context - the route context
Returns:
true if this route module has more requests it can generate, false otherwise


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.