|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tassl.workflow.Workflow
public class Workflow
Constructor Summary | |
---|---|
Workflow(java.util.HashMap<java.lang.String,WorkflowStage> stages)
|
Method Summary | |
---|---|
boolean |
addStages(java.util.HashMap<java.lang.String,WorkflowStage> stages)
Add stages to the workflow |
void |
cancelWorkflow()
|
java.util.List<java.lang.String> |
getCompletedStages()
|
java.util.List<WorkflowStage> |
getExecutableStages()
|
java.lang.String |
getId()
|
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getLoops()
|
java.util.List<java.lang.String> |
getLoopsOrder()
|
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getLoopsOrigName()
|
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getNestedLoops()
|
int |
getNumCompletedStages()
|
int |
getNumStages()
|
java.lang.String |
getResultList()
|
WorkflowStage |
getStage(java.lang.String stageId)
|
java.util.HashMap<java.lang.String,WorkflowStage> |
getWorkflowStages()
Get stages that compose the workflow |
boolean |
isDone()
|
boolean |
isEndLoop(java.lang.String stageId)
Check if stage id is the end of a loop |
boolean |
isWorkflowCanceled()
Return true if workflow is canceled and false otherwise |
void |
newIteration(java.lang.String stageIdendLoop)
Create new iteration of a loop |
void |
prepareForOuterLoop(java.lang.String stageIdendLoop)
Prepare inner loop for the next iteration of its outer loop |
void |
renameStages(java.util.HashMap<java.lang.String,WorkflowStage> wflStages,
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loopsToUpdate,
boolean newIteration)
Rename all newly created stages, create forwardList for new stages add stages to workflow and link all |
void |
setForwardList(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> forwardList)
|
void |
setId(java.lang.String id)
Set Workflow id and propagate it to the stages |
void |
setLoops(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loops)
|
void |
setLoopsOrder(java.util.List<java.lang.String> loopsOrder)
|
void |
setNestedLoops(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> nestedLoops)
|
void |
setStageDone(java.lang.String stageId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Workflow(java.util.HashMap<java.lang.String,WorkflowStage> stages) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public void setId(java.lang.String id)
id
- public void cancelWorkflow()
public boolean isWorkflowCanceled()
public void setForwardList(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> forwardList)
public void setLoops(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loops)
public void setLoopsOrder(java.util.List<java.lang.String> loopsOrder)
public void setNestedLoops(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> nestedLoops)
public java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getLoopsOrigName()
public java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getNestedLoops()
public java.util.List<java.lang.String> getLoopsOrder()
public java.lang.String getId()
public void setStageDone(java.lang.String stageId)
public boolean isEndLoop(java.lang.String stageId)
stageId
-
public java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getLoops()
public boolean isDone()
public WorkflowStage getStage(java.lang.String stageId)
public int getNumStages()
public int getNumCompletedStages()
public java.util.List<java.lang.String> getCompletedStages()
public java.util.List<WorkflowStage> getExecutableStages()
public java.lang.String getResultList()
public java.util.HashMap<java.lang.String,WorkflowStage> getWorkflowStages()
public boolean addStages(java.util.HashMap<java.lang.String,WorkflowStage> stages)
stages
-
public void newIteration(java.lang.String stageIdendLoop)
stageIdendLoop
- Identifies the loop, but the name of the last stage of last iteration until nowpublic void renameStages(java.util.HashMap<java.lang.String,WorkflowStage> wflStages, java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loopsToUpdate, boolean newIteration)
wflStages
- loopsToUpdate
- newIteration
- public void prepareForOuterLoop(java.lang.String stageIdendLoop)
stageIdendLoop
- identify loop, (original name)public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |