|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IHWMWorkflow
Title: IHWMWorkflow
Description: The workflow interface will allow the beans to traverse thru the workflow.
NOTE: When using the GotoTask method, the name of the task and its path is given. If the workflow changes, the bean will now need to provide a new path. Hence, it is advisable to use a file which stores a map from required task name to its path.
Company: Altair Engineering, Inc.
| Field Summary | |
|---|---|
static int |
PLAYOPTION_BREAKPOINT
|
static int |
PLAYOPTION_PLAYABLE
The play options for a task |
static int |
PLAYOPTION_SKIP
|
static int |
STATE_COMPLETED
|
static int |
STATE_ERROR
|
static int |
STATE_INPROGRESS
|
static int |
STATE_NOTDONE
The states for a task |
| Method Summary | |
|---|---|
void |
addWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
Add a workflow listener |
void |
CopyWorkflowStateToActiveRun()
Copy the current workflow state to the active run model |
java.util.Vector |
GetBeansInCurrentTask()
Get all the beans in the page associated with the current task. |
java.lang.String |
GetCurrentTaskName()
Get current task name |
int |
GetCurrentTaskPlayOption()
Get current task's play option |
int |
GetCurrentTaskState()
Get current task state |
boolean |
GetTaskDockable(java.lang.String strTaskName)
Get task's dockable state |
int |
GetTaskPlayOption(java.lang.String strTaskName)
Get task's play option |
int |
GetTaskState(java.lang.String strTaskName)
Get task's state |
void |
GotoTask(java.lang.String strTaskPath)
Go to the task with given path |
void |
GotoTaskByName(java.lang.String strTaskName)
Go to the task with given name |
boolean |
IsBeanDisplayedInTCL(java.lang.Object objBean)
A flag indicating if the bean is being displayed in TCL |
boolean |
IsBeanInTask(java.lang.String strTaskName,
java.lang.Object objBean)
Check if the bean is part of the given task |
boolean |
IsCurrentTaskTCLEnabled()
A flag indicating if the current task is displayed in TCL |
boolean |
IsRunInProgress()
Returns a flag to indicate if run is in progress |
void |
NextTask()
Got to the next task |
void |
Play()
Play the current task |
void |
Play(java.lang.String strTaskName)
Play the given task |
void |
PrevTask()
Got to the previous task |
void |
removeWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
Remove the workflow listener |
void |
Run()
Run from the first task |
void |
Run(java.lang.String strTaskName)
Run from the given task |
void |
SetCurrentTaskPlayOption(int nPlayOption)
Set current task's play option |
void |
SetCurrentTaskState(int nState)
Set current task state |
void |
SetTaskDockable(java.lang.String strTaskName,
boolean bDockable)
Docks/undocks the task |
void |
SetTaskEnabled(java.lang.String strTaskName,
boolean bEnabled)
Set the task ENABLE state to be TRUE/FALSE |
void |
SetTaskPlayOption(java.lang.String strTaskName,
int nPlayOption)
Set task's play option |
void |
SetTasksEnabled(java.util.Vector vectTaskNames,
boolean bEnabled)
Enable/Disable all tasks in the vector |
void |
SetTaskState(java.lang.String strTaskName,
int nState)
Set task's state |
void |
SetTasksVisible(java.util.Vector vectTaskNames,
boolean bVisible)
Show/hide all tasks in the vector |
void |
SetTaskVisible(java.lang.String strTaskName,
boolean bVisible)
Set the task to be visible or not |
void |
SetWorkflowStateFromActiveRun()
Set the current workflow state from the active run model |
void |
StopRun()
Stop the "Run" process |
| Field Detail |
|---|
static final int STATE_NOTDONE
static final int STATE_INPROGRESS
static final int STATE_COMPLETED
static final int STATE_ERROR
static final int PLAYOPTION_PLAYABLE
static final int PLAYOPTION_BREAKPOINT
static final int PLAYOPTION_SKIP
| Method Detail |
|---|
void NextTask()
throws java.lang.Exception
java.lang.Exception - If the next task cannot be shown
void PrevTask()
throws java.lang.Exception
java.lang.Exception - If the previous task cannot be shown
void GotoTask(java.lang.String strTaskPath)
throws java.lang.Exception
strTaskPath - The name of the task. It will be in the form of
Root.Child1.Child2.taskname
java.lang.Exception - If the given task cannot be shown
void GotoTaskByName(java.lang.String strTaskName)
throws java.lang.Exception
strTaskName - The name of the task.
java.lang.Exception - If the given task cannot be shown
java.util.Vector GetBeansInCurrentTask()
throws java.lang.Exception
java.lang.Exception - If there is no current task
java.lang.String GetCurrentTaskName()
throws java.lang.Exception
java.lang.Exception - If the current task is null
void SetCurrentTaskState(int nState)
throws java.lang.Exception
nState - The current task state
java.lang.Exception - If the current task is null
void SetCurrentTaskPlayOption(int nPlayOption)
throws java.lang.Exception
nPlayOption - The current task's play option
java.lang.Exception - If the current task is null
void SetTaskState(java.lang.String strTaskName,
int nState)
throws java.lang.Exception
strTaskName - The name of the tasknState - The task state
java.lang.Exception - If the task is not present
void SetTaskPlayOption(java.lang.String strTaskName,
int nPlayOption)
throws java.lang.Exception
strTaskName - The name of the tasknPlayOption - The task's play option
java.lang.Exception - If the task is not present
int GetCurrentTaskState()
throws java.lang.Exception
java.lang.Exception - If the current task is null
int GetCurrentTaskPlayOption()
throws java.lang.Exception
java.lang.Exception - If the current task is null
int GetTaskState(java.lang.String strTaskName)
throws java.lang.Exception
strTaskName - The name of the task
java.lang.Exception - If the task is not present
int GetTaskPlayOption(java.lang.String strTaskName)
throws java.lang.Exception
strTaskName - The name of the task
java.lang.Exception - If the task is not present
void Play()
throws java.lang.Exception
java.lang.Exception - If the current task is null or not playable
void Play(java.lang.String strTaskName)
throws java.lang.Exception
strTaskName - The name of the task to play
java.lang.Exception - If the task is not present or not playable
void Run()
throws java.lang.Exception
java.lang.Exception - If any error occurs
void Run(java.lang.String strTaskName)
throws java.lang.Exception
strTaskName - The name of the task to run from. If null, the
process is run from the current task
java.lang.Exception - If task is not present or if any error occurs
void StopRun()
throws java.lang.Exception
java.lang.Exception - If any error occurs
void SetTaskVisible(java.lang.String strTaskName,
boolean bVisible)
throws java.lang.Exception
String - strTaskName The unique name for the taskbVisible - The flag that indicates if the task should be visible
or not
java.lang.Exception - If any error occurs
void SetTasksVisible(java.util.Vector vectTaskNames,
boolean bVisible)
throws java.lang.Exception
vectTaskNames - The vector of unique name for the tasksbVisible - The flag that indicates if the task should be visible
or not
java.lang.Exception - If any error occurs
void SetTaskEnabled(java.lang.String strTaskName,
boolean bEnabled)
throws java.lang.Exception
String - strTaskName The unique name for the taskbEnabled - - The flag that indicates if the task should be enabled
or not
java.lang.Exception - If any error occurs
void SetTasksEnabled(java.util.Vector vectTaskNames,
boolean bEnabled)
throws java.lang.Exception
vectTaskNames - The vector of unique name for the tasksbEnabled - - The flag that indicates if the task should be enabled
or not
java.lang.Exception - If any error occursboolean IsRunInProgress()
void addWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
hwmWorkflowEventListener - The listener objectvoid removeWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
hwmWorkflowEventListener - The listener object
boolean IsBeanInTask(java.lang.String strTaskName,
java.lang.Object objBean)
strTaskName - The unique name for the taskobjBean - The bean object
boolean IsCurrentTaskTCLEnabled()
boolean IsBeanDisplayedInTCL(java.lang.Object objBean)
void CopyWorkflowStateToActiveRun()
void SetWorkflowStateFromActiveRun()
throws java.lang.Exception
java.lang.Exception
void SetTaskDockable(java.lang.String strTaskName,
boolean bDockable)
throws java.lang.Exception
strTaskName - The unique name of the taskbDockable - The flag that indicates if the task should be dockable
or not
java.lang.Exception - If any error occurs
boolean GetTaskDockable(java.lang.String strTaskName)
throws java.lang.Exception
strTaskName - The name of the task
java.lang.Exception - If the task is not present
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||