public interface ITaskFormFlowService
waitPrepare(String)
call for some unique correlation IDwait(TaskFlowObject, int)
.TaskFlowObject
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
ITaskFormFlowService.Instance.get()
Modifier and Type | Interface and Description |
---|---|
static class |
ITaskFormFlowService.Instance
Returns implementation instance for FormFlow service
|
Modifier and Type | Method and Description |
---|---|
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.
|
TaskFlowObject waitPrepare(String correlationID)
correlationID
- correlation ID value to wait for. Must be uniquevoid 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