|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WeeManager
It allows to submit a job to the WorkflowExecution Engine's queue and also maintains a list of jobs currently being executed and their status, etc. A polling architecture for clients is implemented by using tickets for job identification. The list of jobs is a nice thread-safe FIFO Queue which is processed by the messageDriven WorkflowExecutionEngine.
| Method Summary | |
|---|---|
WorkflowResult |
getExecutionResult(java.util.UUID ticket)
Method for polling the wf execution results for a given ticket. |
int |
getPositionInQueue(java.util.UUID ticket)
Returns the current position in the queue. |
int |
getProgress(java.util.UUID ticket)
Returns -1 if status = submitted, completed or failed; 0-100 when execution is running |
WorkflowExecutionStatus |
getStatus(java.util.UUID ticket)
Returns the Workflow Execution Status for a given ticket. |
boolean |
isExecutionCompleted(java.util.UUID ticket)
|
boolean |
isExecutionFailed(java.util.UUID ticket)
|
boolean |
isExecutionRunning(java.util.UUID ticket)
|
void |
notify(java.util.UUID ticket,
WorkflowExecutionStatus status)
The callback method which is used by the execution engine to report back on a wf execution's status |
void |
notify(java.util.UUID ticket,
WorkflowResult wfResult,
WorkflowExecutionStatus executionStatus)
The callback method which is used by the execution engine to report back on a wf execution and its status |
void |
notify(java.util.UUID ticket,
WorkflowResult wfResult,
WorkflowExecutionStatus executionStatus,
int percentCompleted)
The callback method which is used by the execution engine to report back on a wf execution, its status, the current workflowResult and the percent of completed items |
java.util.UUID |
submitWorkflow(WorkflowInstance workflow)
Submits a workflow for execution. |
| Method Detail |
|---|
java.util.UUID submitWorkflow(WorkflowInstance workflow)
workflow -
WorkflowExecutionStatus getStatus(java.util.UUID ticket)
throws PlanetsException
ticket -
PlanetsException - if ticket is unknown
int getPositionInQueue(java.util.UUID ticket)
throws PlanetsException
ticket -
PlanetsException - if ticket is unknown
void notify(java.util.UUID ticket,
WorkflowResult wfResult,
WorkflowExecutionStatus executionStatus)
wfResult - executionStatus -
void notify(java.util.UUID ticket,
WorkflowExecutionStatus status)
wfResult - executionStatus -
void notify(java.util.UUID ticket,
WorkflowResult wfResult,
WorkflowExecutionStatus executionStatus,
int percentCompleted)
wfResult - executionStatus - percentCompleted - 0-100
int getProgress(java.util.UUID ticket)
throws PlanetsException
ticket -
PlanetsException - if ticket is unknown
WorkflowResult getExecutionResult(java.util.UUID ticket)
throws PlanetsException
ticket -
PlanetsException - if status is != completedboolean isExecutionRunning(java.util.UUID ticket)
boolean isExecutionCompleted(java.util.UUID ticket)
boolean isExecutionFailed(java.util.UUID ticket)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||