public class IteratedRequestActivationNode extends Object implements SimpleNode
process(RouteContext, RouteHelper) to activate
those requests.
This node can be used to serve multiple batches of requests, and can be re-entered multiple times. The algorithm it implements is:
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
IteratedRequestActivationNode.RequestFulfillmentCriteria |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
IteratedRequestActivationNode() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
activateRequests(RouteContext routeContext)
Activates any pending requests and returns whether there are outstanding blocking requests
|
protected boolean |
generateNewRequests(boolean initial,
RouteContext context,
RouteHelper routeHelper)
Template method that subclasses should override to generates new requests
|
protected IteratedRequestActivationNode.RequestFulfillmentCriteria |
getRequestFulfillmentCriteria(RouteContext routeContext)
Template method that subclasses should override to indicate when activated requests have been fulfilled.
|
SimpleResult |
process(RouteContext routeContext,
RouteHelper routeHelper) |
protected void |
saveActionRequest(RouteContext context,
ActionRequestValue actionRequest) |
protected final org.apache.log4j.Logger LOG
public IteratedRequestActivationNode()
public SimpleResult process(RouteContext routeContext, RouteHelper routeHelper) throws Exception
process in interface SimpleNodeExceptionprotected IteratedRequestActivationNode.RequestFulfillmentCriteria getRequestFulfillmentCriteria(RouteContext routeContext)
protected boolean generateNewRequests(boolean initial, RouteContext context, RouteHelper routeHelper) throws WorkflowException, Exception
initial - whether this is the very first request generation, that is, the first generation in the first invocation of the nodeExceptionWorkflowExceptionprotected boolean activateRequests(RouteContext routeContext) throws WorkflowException
context - the RouteContextWorkflowException - if anything goes wrong...protected void saveActionRequest(RouteContext context, ActionRequestValue actionRequest)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.