Core Flow Methods

These methods are available to every flow script automatically to simplify interactions with the flow engine. They can be overridden as necessary for advanced customizations like intercepting every function call to perform some common logic like security checks.

The only method that should be called from an application's flow scripts is forwardAndWait() as the others are mainly just used by the framework. They are exposed to allow the user to easily customize functionality.

Function Summary
Continuation forwardAndWait(name, atts, allowedRemoteFuncs)
void handleContinuation(kont)

Functions

forwardAndWait

Continuation  forwardAndWait(name, atts, allowedRemoteFuncs)

Forwards to a page and creates a continuation. Contains special support for client FlowCall's (calling flow functions through asynchrous javascript calls from the client). The forward name will be used to find the appropriate Struts ActionForward to return from the Action.

Parameters:
name - The Struts forward name to call
atts - Map of business objects to place in the request scope
allowedRemoteFuncs - A list of remote function names that are allowed to be called from asynchronously from the client. An empty array allows any function call, a null or not specified array allows none.
Returns:
The continuation created used in the call

handleContinuation

void  handleContinuation(kont)

This function is called by Struts Flow to restart a previously saved continuation passed as argument. Override this method to have control over how continuations are instantiated.

Parameters:
kont - The continuation to reload