|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITaskFormFlowService
Service to handle form flow between tasks in the process model. The basic usage is:
1. Create wait object using ITaskFormFlowService.waitPrepare(String)
call for some unique correlation ID
2. Complete a task
3. Wait for new result from form flow using ITaskFormFlowService.wait(TaskFlowObject, int)
.
4. Obtain result from TaskFlowObject
The new task being queued will need to call notify in its Queued event ITaskFormFlowService.notify(String, String, boolean)
for
the same correlation ID and pass out a result. The result may be anything, for typical form flow implementation the result
would be ID of a new task queued
To obtain service implementation instance use ITaskFormFlowService.Instance.get()
Nested Class Summary | |
---|---|
static class |
ITaskFormFlowService.Instance
Returns implementation instance for FormFlow service |
Method Summary | |
---|---|
void |
notify(String correlationID,
String result,
boolean localOnly)
Notifies anyone waiting on the specific correlation ID. |
void |
wait(TaskFlowObject flow,
int timeout)
Waits for a notification for a given wait object. |
TaskFlowObject |
waitPrepare(String correlationID)
Prepares and returns wait object based on the unique correlation ID. |
Method Detail |
---|
TaskFlowObject waitPrepare(String correlationID)
correlationID
- correlation ID value to wait for. Must be unique
void wait(TaskFlowObject flow, int timeout) throws InterruptedException
flow
- wait object obtained by waitPrepare() calltimeout
- timeout in milliseconds to wait.
InterruptedException
void notify(String correlationID, String result, boolean localOnly) throws PortalException
correlationID
- correlation ID to notify aboutresult
- result string to pass to waiting partylocalOnly
- whether notify whole MWS cluster. Typically this should be set to false.
PortalException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |