|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultTreeModel
com.altair.hwm.toolkit.workflow.HWMWorkflowModel
public class HWMWorkflowModel
Title: HWMWorkflowModel Description: Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
CURRENT_SCNODE_PROP_NAME
|
static java.lang.String |
CURRENT_TASK_PROP_NAME
|
static java.lang.String |
NODE_DOCKABLE_STATE_PROP_NAME
|
static java.lang.String |
NODE_ENABLE_STATE_PROP_NAME
|
static java.lang.String |
NODE_PLAYOPTIONS_PROP_NAME
|
static java.lang.String |
NODE_STATE_PROP_NAME
|
static java.lang.String |
NODE_VISIBLE_STATE_PROP_NAME
|
static java.lang.String |
SELECTED_NODE_PROP_NAME
|
static short |
TCLPROC_CLOSE
|
static short |
TCLPROC_DISPLAY
|
static short |
TCLPROC_EXECUTE
|
static short |
TCLPROC_NONE
These constants signify what method in the TCL file hould be called - execute, display or none |
static java.lang.String |
TEMPLATE_VERSION
|
static java.lang.String |
VERSION
|
Fields inherited from interface com.altair.hwm.interfaces.IHWMWorkflow |
---|
PLAYOPTION_BREAKPOINT, PLAYOPTION_PLAYABLE, PLAYOPTION_SKIP, STATE_COMPLETED, STATE_ERROR, STATE_INPROGRESS, STATE_NOTDONE |
Constructor Summary | |
---|---|
HWMWorkflowModel(HWMModelInstance hwmModelInstance)
Constructor |
|
HWMWorkflowModel(javax.swing.tree.TreeNode nodeRoot,
boolean bAllowsChildren)
Constructor |
|
HWMWorkflowModel(javax.swing.tree.TreeNode nodeRoot,
HWMModelInstance hwmModelInstance)
Constructor |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listenerProp)
Adds a propertyChangeListener |
void |
addPropertyChangeListener(java.lang.String szPropName,
java.beans.PropertyChangeListener listenerProp)
Adds a propertyChangeListener |
void |
AddToolkitEventListener(HWMToolkitEventListener listenerEvent)
Adds a HWMToolkitEventListener |
void |
addWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
Add a workflow listener |
void |
ClearAll()
Clear the workflow |
void |
CloseDisplayedTCLPanel(HWMWorkflowNode hwmNode)
Utility method to close the currently displayed TCL panel |
void |
CloseHWSession()
Close the communication session with HW. |
void |
CopyWorkflowStateToActiveRun()
Copy the current workflow state to the active run model |
HWMWorkflowNode |
CreateWorkflowNode(java.lang.Object objUserObject,
boolean bAllowsChildren)
Create a new node with the given attributes |
void |
DeleteCustomWorkflowView()
Deletes all beans from the vector of beans and clears the page. |
void |
ExecuteTaskInRunMode()
NOTE: THis is because damn TCL does not support threads on UNIX and hence the slightly bigger language comes to the rescue once again :-) NOTE: Please use this only in TCL mode Execute the current task in run mode and at the end move to the next task. |
void |
ExecuteTCLScript(HWMWorkflowNode hwmWrkflowNode,
short nOption)
Utility method that sources the TCL script and either calls Display or Execute depending on bExecute flag |
HWMWorkflowNode |
FindTaskByName(java.lang.String strTaskName)
Find the task with given name |
HWMWorkflowNode |
FindTaskByPath(java.lang.String strTaskPath)
Find the task with given the path from the root |
void |
FireReplayCompleted()
Fire the toolkit event to signify the end of run |
void |
fireWorkflowEvent(java.lang.Object objSrc,
int nEvtType,
java.lang.String strTaskName,
int nTaskState,
int nTaskPlayOption)
Fire the workflow event |
java.util.Vector |
GetAllTaskNames()
Get the vector of task names present in the workflow |
java.util.Vector |
GetAllTaskNamesAlongWithRootTask()
returns the vector of all task names along with root task... |
java.lang.String |
GetAllVisibleTaskNames()
|
int |
GetAppType()
Get the application type |
java.util.Vector |
GetBeansInCurrentTask()
Get all the beans in the page associated with the current task. |
java.lang.Object |
getChild(java.lang.Object objParent,
int nIndex)
Returns the child at the specified index |
java.lang.Object |
GetChildAtIndex(java.lang.Object objParent,
int nIndex)
Returns the child at the specified index even if its not visible |
int |
getChildCount(java.lang.Object objParent)
Returns the number of children |
java.lang.String |
GetChildrenNames(java.lang.String strParentNodeName)
Get the names of children as a space separated string |
HWMWorkflowNode |
GetCurrentShortCut()
Returns the current shortcut task |
HWMWorkflowNode |
GetCurrentTask()
Returns the current task/folder |
HWMWorkflowNode |
GetCurrentTaskDisplayed()
Returns the current displayed task |
java.lang.String |
GetCurrentTaskName()
Get current task name |
int |
GetCurrentTaskPlayOption()
Get current task's play option |
int |
GetCurrentTaskState()
Get current task state |
java.awt.Component |
GetCustomWorkflowView()
Get the custom workflow view |
HWMWorkflowNode |
GetFirstTask()
Returns the first task of the workflow. |
static HWMGraphView |
getGraphViewMgr()
gives the information of flow chart |
java.lang.String |
GetImageFilenameOnPage()
GetImageFile name on page.... |
int |
getIndexOfChild(java.lang.Object objParent,
java.lang.Object objChild)
Returns the index of the child |
HWMWorkflowNode |
GetNextTaskNode()
Get the next task node |
HWMWorkflowNode |
GetNextTaskNode(HWMWorkflowNode hwmWorkflowNode)
Get the next task node |
java.util.Vector |
GetNodeImmediateChildren(HWMWorkflowNode nodeParent)
This method returns a vector of immediate children nodes for this parent. |
java.util.Vector |
GetNodeRecursiveChildren(HWMWorkflowNode nodeParent)
This method returns a vector of node children for the parent. |
java.lang.String |
GetParentNodeName(java.lang.String strNodeName)
Get the name of the parent node |
HWMWorkflowNode |
GetPrevTaskNode()
Get the previous task node |
HWMWorkflowNode |
GetPrevTaskNode(HWMWorkflowNode hwmWorkflowNode)
Get the previous task node |
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 |
int |
GetTotalChildCount(java.lang.Object objParent)
Returns the number of children (both visible and non-visible) |
java.lang.String |
GetWorkflowStructure()
Creates the workFlow structure for HWMPM as a string. |
void |
GotoTask(java.lang.String strTaskName)
Got to the given task |
void |
GotoTaskByName(java.lang.String strTaskName)
Go to the task with given name |
void |
InitCustomWorkflowView(IHWMFrameWork hwmFrameWork)
Initializes the custom view bean. |
void |
Initialize(IHWMFrameWork hwmFrameWork,
boolean bPMMode)
Initializes the workflow. |
void |
InitializeTask()
Initializes the task in workflow. |
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 |
IsDesignMode()
Returns the designer mode flag |
java.lang.String |
isImageFileVisibilityStatusOnPage()
gives the information of the image file on page.. |
boolean |
isLeaf(java.lang.Object objNode)
Returns whether the node is a leaf or not |
boolean |
IsNodeNameUnique(HWMWorkflowNode hwmNode,
java.lang.String strNodeName)
Checks if there are any nodes with the given name. |
boolean |
IsNodeVisible(HWMWorkflowNode hwmNode)
Check if the given node is visible and if all it's parents are visible too. |
boolean |
IsRunInProgress()
Returns a flag to indicate if run is in progress |
void |
IsWorkflowModelValid()
Check if the workflow model is valid. |
void |
LoadProject(java.io.ObjectInputStream streamInput)
Loads this class |
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 |
ReadWorkflowModel_3_0(org.jdom.Element elemWorkflow)
In the prj file from V 3.0 save only the states of each task in XML format |
void |
ReadWorkflowModel_4_0(org.jdom.Element elemWorkflow)
In the prj file from V 4.0 save only the states of each task in XML format |
void |
ReadWorkflowModel(org.jdom.Element elemWorkflow)
In the prj file from V 6.0 save only the states of each task in XML format |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listenerProp)
Removes a propertyChangeListener |
void |
removePropertyChangeListener(java.lang.String szPropName,
java.beans.PropertyChangeListener listenerProp)
Removes a propertyChangeListener |
void |
RemoveToolkitEventListener(HWMToolkitEventListener listenerEvt)
Removes a HWMToolkitEventListener |
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 |
RunOnMainThread(int nRunMode)
NOTE: THis is because damn TCL does not support threads on UNIX and hence the slightly bigger language comes to the rescue once again :-) NOTE: Please use this only in TCL mode Execute Run either from start or current task on the main thread. |
void |
SaveProject(java.io.ObjectOutputStream streamOut)
Saves this class |
void |
SetCurrentTask(HWMWorkflowNode nodeCurrentTask)
Sets the current task/folder |
void |
SetCurrentTask(HWMWorkflowNode nodeCurrentTask,
java.lang.Object objCaller,
short nOption)
Sets the current task/folder |
void |
SetCurrentTaskPlayOption(int nPlayOption)
Set current task's play option |
void |
SetCurrentTaskState(int nState)
Set current task state |
void |
SetCustomWorkflowView(java.awt.Component compCustomWorkflow)
Set the custom workflow view |
void |
SetDesignMode(boolean bDesignMode)
Sets the designer mode flag |
void |
SetTaskDockable(java.lang.Object objSrc,
HWMWorkflowNode hwmNode,
boolean bDockable)
Set the given task property IsDockable to true or false |
void |
SetTaskDockable(java.lang.String strTaskName,
boolean bDockable)
Docks/undocks the task |
void |
SetTaskEnabled(java.lang.String strTaskName,
boolean bEnabled)
ENABLE/DISABLE all tasks in the vector |
void |
SetTaskPlayOption(java.lang.Object objSrc,
HWMWorkflowNode hwmNode,
int nPlayOption)
Set task's play option |
void |
SetTaskPlayOption(java.lang.String strTaskName,
int nPlayOption)
Set task's play option |
void |
SetTasksEnabled(java.lang.Object objSrc,
java.util.Vector vectTasks,
boolean bEnabled)
Set the given tasks ENABLE state to true or false |
void |
SetTasksEnabled(java.util.Vector vectTaskNames,
boolean bEnabled)
ENABLE/DISABLE all tasks in the vector |
void |
SetTaskState(java.lang.Object objSrc,
HWMWorkflowNode hwmNode,
int nState)
Set task's state |
void |
SetTaskState(java.lang.String strTaskName,
int nState)
Set task's state |
void |
SetTasksVisible(java.lang.Object objSrc,
java.util.Vector vectTasks,
boolean bVisible)
Set the given tasks visibility to true or false |
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 running the process |
void |
TCLClose(HWMClientComm hwmClientComm,
HWMWorkflowNode hwmNode,
java.lang.String strCmd)
Utility method that closes the TCL UI |
void |
TCLDisplay(HWMClientComm hwmClientComm,
HWMWorkflowNode hwmNode,
java.lang.String strCmd)
Utility method that displays the TCL script |
void |
TCLExecute(HWMClientComm hwmClientComm,
HWMWorkflowNode hwmNode,
java.lang.String strCmd)
Utility method that executes the TCL script |
void |
WriteWorkflowModel(org.jdom.Element elemWorkflow)
In the prj file from V 6.0 save only the states of each task in XML format |
Methods inherited from class javax.swing.tree.DefaultTreeModel |
---|
addTreeModelListener, asksAllowsChildren, getListeners, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short TCLPROC_NONE
public static final short TCLPROC_DISPLAY
public static final short TCLPROC_EXECUTE
public static final short TCLPROC_CLOSE
public static final java.lang.String VERSION
public static final java.lang.String TEMPLATE_VERSION
public static final java.lang.String CURRENT_TASK_PROP_NAME
public static final java.lang.String SELECTED_NODE_PROP_NAME
public static final java.lang.String CURRENT_SCNODE_PROP_NAME
public static final java.lang.String NODE_STATE_PROP_NAME
public static final java.lang.String NODE_VISIBLE_STATE_PROP_NAME
public static final java.lang.String NODE_ENABLE_STATE_PROP_NAME
public static final java.lang.String NODE_PLAYOPTIONS_PROP_NAME
public static final java.lang.String NODE_DOCKABLE_STATE_PROP_NAME
Constructor Detail |
---|
public HWMWorkflowModel(HWMModelInstance hwmModelInstance)
public HWMWorkflowModel(javax.swing.tree.TreeNode nodeRoot, HWMModelInstance hwmModelInstance)
nodeRoot
- The root node of the treepublic HWMWorkflowModel(javax.swing.tree.TreeNode nodeRoot, boolean bAllowsChildren)
nodeRoot
- The root node of the treebAllowsChildren
- True if node can have childrenMethod Detail |
---|
public void SetDesignMode(boolean bDesignMode)
bDesignMode
- If true then design mode else app modepublic boolean IsDesignMode()
public void ClearAll()
public HWMWorkflowNode GetCurrentShortCut()
public HWMWorkflowNode GetCurrentTaskDisplayed()
public HWMWorkflowNode GetCurrentTask()
public void SetCurrentTask(HWMWorkflowNode nodeCurrentTask)
nodeCurrentTask
- The new current task/folderpublic void SetCurrentTask(HWMWorkflowNode nodeCurrentTask, java.lang.Object objCaller, short nOption)
nodeCurrentTask
- The new current task/folderobjCaller
- A ref to the object that called this method. In thenOption
- The option to execute/display or do nothing
Event object, it is stored as the source of the event.public HWMWorkflowNode GetFirstTask()
HWMWorkflowNode
- The first task node or null.public void SetTaskState(java.lang.Object objSrc, HWMWorkflowNode hwmNode, int nState) throws java.lang.Exception
objSrc
- The source for this callhwmNode
- The task node whose state should be changednState
- The task state
java.lang.Exception
- If the task is not presentpublic void SetTasksVisible(java.lang.Object objSrc, java.util.Vector vectTasks, boolean bVisible) throws java.lang.Exception
objSrc
- The source for this callvectTasks
- The vector of tasks whose state should be changedbVisible
- The visible state
java.lang.Exception
- If the task is not presentpublic void SetTasksEnabled(java.lang.Object objSrc, java.util.Vector vectTasks, boolean bEnabled) throws java.lang.Exception
objSrc
- The source for this callvectTasks
- The vector of tasks whose state should be changedbEnabled
- - The ENABLE state (TRUE/FALSE)
java.lang.Exception
- If the task is not presentpublic void SetTaskPlayOption(java.lang.Object objSrc, HWMWorkflowNode hwmNode, int nPlayOption) throws java.lang.Exception
objSrc
- The source for this callhwmNode
- The task node whose state should be changednPlayOption
- The task's play option
java.lang.Exception
- If the task is not presentpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listenerProp)
listenerProp
- The listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listenerProp)
listenerProp
- The listenerpublic void addPropertyChangeListener(java.lang.String szPropName, java.beans.PropertyChangeListener listenerProp)
szPropName
- The property to listener forlistenerProp
- The listenerpublic void removePropertyChangeListener(java.lang.String szPropName, java.beans.PropertyChangeListener listenerProp)
szPropName
- The property to listener for.listenerProp
- The listenerpublic void AddToolkitEventListener(HWMToolkitEventListener listenerEvent)
listenerEvent
- The listener to addpublic void RemoveToolkitEventListener(HWMToolkitEventListener listenerEvt)
listenerEvent
- The listener to removepublic int getIndexOfChild(java.lang.Object objParent, java.lang.Object objChild)
getIndexOfChild
in interface javax.swing.tree.TreeModel
getIndexOfChild
in class javax.swing.tree.DefaultTreeModel
objParent
- The parent nodeobjChild
- The child nodepublic boolean isLeaf(java.lang.Object objNode)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class javax.swing.tree.DefaultTreeModel
objNode
- The node to test
public int getChildCount(java.lang.Object objParent)
getChildCount
in interface javax.swing.tree.TreeModel
getChildCount
in class javax.swing.tree.DefaultTreeModel
objParent
- The parent node
public int GetTotalChildCount(java.lang.Object objParent)
objParent
- The parent node
public java.lang.Object getChild(java.lang.Object objParent, int nIndex)
getChild
in interface javax.swing.tree.TreeModel
getChild
in class javax.swing.tree.DefaultTreeModel
objParent
- The parentnIndex
- The index of the child
public java.lang.Object GetChildAtIndex(java.lang.Object objParent, int nIndex)
objParent
- The parentnIndex
- The index of the child
public int GetAppType()
public void CloseHWSession()
public void ExecuteTCLScript(HWMWorkflowNode hwmWrkflowNode, short nOption) throws java.lang.Exception
hwmWrkflowNode
- The workflow node whose task should be executednOption
- The option to execute/display or do nothing
java.lang.Exception
- If any error occurspublic void TCLDisplay(HWMClientComm hwmClientComm, HWMWorkflowNode hwmNode, java.lang.String strCmd) throws java.lang.Exception
hwmClientComm
- The client communicationhwmNode
- The workflow node whose task should be displayedstrCmd
- The cmd to send. More cmds will be appended to this
java.lang.Exception
- If any error occurspublic void TCLExecute(HWMClientComm hwmClientComm, HWMWorkflowNode hwmNode, java.lang.String strCmd) throws java.lang.Exception
hwmClientComm
- The client communicationhwmNode
- The workflow node whose task should be executedstrCmd
- The cmd to send. More cmds will be appended to this
java.lang.Exception
- If any error occurspublic void TCLClose(HWMClientComm hwmClientComm, HWMWorkflowNode hwmNode, java.lang.String strCmd) throws java.lang.Exception
hwmClientComm
- The client communicationhwmNode
- The workflow node whose task should be closedstrCmd
- The cmd to send. More cmds will be appended to this
java.lang.Exception
- If any error occurspublic java.util.Vector GetNodeRecursiveChildren(HWMWorkflowNode nodeParent) throws java.lang.Exception
nodeParent
- The node to get the children from
java.lang.Exception
public java.util.Vector GetNodeImmediateChildren(HWMWorkflowNode nodeParent) throws java.lang.Exception
nodeParent
- The node to get the children from
java.lang.Exception
public java.lang.String GetParentNodeName(java.lang.String strNodeName) throws java.lang.Exception
The
- parent node name
java.lang.Exception
public java.lang.String GetChildrenNames(java.lang.String strParentNodeName) throws java.lang.Exception
java.lang.Exception
public java.lang.String GetAllVisibleTaskNames() throws java.lang.Exception
java.lang.Exception
public void CloseDisplayedTCLPanel(HWMWorkflowNode hwmNode)
The
- workflow node whose TCL panel should be closed [if its
displayed]. if null, the current displayed node is closed (if tcl)
Note: Changed the protected to public by Binu Panicker on Jan 9th 2003.
This is done to allow the HWPMInteraction class to call this method
when the "EpicCloseTaskModule" messaged is receivedpublic HWMWorkflowNode GetNextTaskNode() throws java.lang.Exception
java.lang.Exception
public HWMWorkflowNode GetPrevTaskNode() throws java.lang.Exception
java.lang.Exception
public HWMWorkflowNode GetNextTaskNode(HWMWorkflowNode hwmWorkflowNode) throws java.lang.Exception
hwmWorkflowNode
- The node whose next node should be returned
java.lang.Exception
public HWMWorkflowNode GetPrevTaskNode(HWMWorkflowNode hwmWorkflowNode) throws java.lang.Exception
hwmWorkflowNode
- The node whose prev node should be returned
java.lang.Exception
public boolean IsNodeVisible(HWMWorkflowNode hwmNode)
hwmNode
- The node whose hierarchy should be checked for visiblity
public HWMWorkflowNode FindTaskByName(java.lang.String strTaskName) throws java.lang.Exception
strTaskName
- The task name
java.lang.Exception
- If the given task name cannot be foundpublic HWMWorkflowNode FindTaskByPath(java.lang.String strTaskPath) throws java.lang.Exception
strTaskPath
- The task path
java.lang.Exception
- If the given task path cannot be foundpublic HWMWorkflowNode CreateWorkflowNode(java.lang.Object objUserObject, boolean bAllowsChildren)
objUserObject
- The object stored in the nodebAllowsChildren
- True if accepts children, false if not.public boolean IsNodeNameUnique(HWMWorkflowNode hwmNode, java.lang.String strNodeName)
hwmNode
- The node whose name is to be checked for uniquenessstrNodeName
- The name of the given node
public void SetCustomWorkflowView(java.awt.Component compCustomWorkflow)
public java.awt.Component GetCustomWorkflowView()
public void InitCustomWorkflowView(IHWMFrameWork hwmFrameWork)
iFrameWork
- The frame work interfacepublic void Initialize(IHWMFrameWork hwmFrameWork, boolean bPMMode) throws java.lang.Exception
hwmFrameWork
- The frame work interfacebPMMode
- If PM interaction is on - then this is true, else false
java.lang.Exception
public void InitializeTask()
public void DeleteCustomWorkflowView()
public java.lang.String GetWorkflowStructure()
public java.util.Vector GetAllTaskNames()
public void addWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
addWorkflowEventListener
in interface IHWMWorkflow
hwmWorkflowEventListener
- The listener objectpublic void removeWorkflowEventListener(HWMWorkflowEventListener hwmWorkflowEventListener)
removeWorkflowEventListener
in interface IHWMWorkflow
hwmWorkflowEventListener
- The listener objectpublic void fireWorkflowEvent(java.lang.Object objSrc, int nEvtType, java.lang.String strTaskName, int nTaskState, int nTaskPlayOption)
objSrc
- The source objectnEvtType
- The type of the eventstrTaskName
- The name of the tasknTaskState
- The state of the tasknTaskPlayOption
- The play option for the taskpublic void FireReplayCompleted()
public void LoadProject(java.io.ObjectInputStream streamInput) throws java.io.IOException, java.lang.ClassNotFoundException
streamInput
- The input stream to read from
java.io.IOException
java.lang.ClassNotFoundException
public void SaveProject(java.io.ObjectOutputStream streamOut) throws java.io.IOException
streamOut
- The stream to write to
java.io.IOException
public void ReadWorkflowModel_3_0(org.jdom.Element elemWorkflow) throws java.lang.Exception
elemWrkflow
- The workflow element
java.lang.Exception
public void ReadWorkflowModel_4_0(org.jdom.Element elemWorkflow) throws java.lang.Exception
elemWrkflow
- The workflow element
Note: Added the Node ENABLE/DISBALE state
java.lang.Exception
public void ReadWorkflowModel(org.jdom.Element elemWorkflow) throws java.lang.Exception
elemWrkflow
- The workflow element
java.lang.Exception
public void WriteWorkflowModel(org.jdom.Element elemWorkflow)
elemWrkflow
- The workflow elementpublic void IsWorkflowModelValid() throws java.lang.Exception
java.lang.Exception
- If the workflow model is not valid.public void RunOnMainThread(int nRunMode)
nRunMode
- If 0 - execute from task else current taskpublic void ExecuteTaskInRunMode()
public boolean IsBeanInTask(java.lang.String strTaskName, java.lang.Object objBean)
IsBeanInTask
in interface IHWMWorkflow
strTaskName
- The unique name for the taskobjBean
- The bean object
public boolean IsCurrentTaskTCLEnabled()
IsCurrentTaskTCLEnabled
in interface IHWMWorkflow
public boolean IsBeanDisplayedInTCL(java.lang.Object objBean)
IsBeanDisplayedInTCL
in interface IHWMWorkflow
public void NextTask() throws java.lang.Exception
NextTask
in interface IHWMWorkflow
java.lang.Exception
- If the next task cannot be shownpublic void PrevTask() throws java.lang.Exception
PrevTask
in interface IHWMWorkflow
java.lang.Exception
- If the previous task cannot be shownpublic void GotoTask(java.lang.String strTaskName) throws java.lang.Exception
GotoTask
in interface IHWMWorkflow
strTaskName
- 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 shownpublic void GotoTaskByName(java.lang.String strTaskName) throws java.lang.Exception
GotoTaskByName
in interface IHWMWorkflow
strTaskName
- The name of the task.
java.lang.Exception
- If the given task cannot be shownpublic java.util.Vector GetBeansInCurrentTask() throws java.lang.Exception
GetBeansInCurrentTask
in interface IHWMWorkflow
java.lang.Exception
- If there is no current taskpublic java.lang.String GetCurrentTaskName() throws java.lang.Exception
GetCurrentTaskName
in interface IHWMWorkflow
java.lang.Exception
- If the current task is nullpublic void SetCurrentTaskState(int nState) throws java.lang.Exception
SetCurrentTaskState
in interface IHWMWorkflow
nState
- The current task state
java.lang.Exception
- If the current task is nullpublic void SetCurrentTaskPlayOption(int nPlayOption) throws java.lang.Exception
SetCurrentTaskPlayOption
in interface IHWMWorkflow
nPlayOption
- The current task's play option
java.lang.Exception
- If the current task is nullpublic void SetTaskVisible(java.lang.String strTaskName, boolean bVisible) throws java.lang.Exception
SetTaskVisible
in interface IHWMWorkflow
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 occurspublic void SetTasksVisible(java.util.Vector vectTaskNames, boolean bVisible) throws java.lang.Exception
SetTasksVisible
in interface IHWMWorkflow
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 occurspublic void SetTasksEnabled(java.util.Vector vectTaskNames, boolean bEnabled) throws java.lang.Exception
SetTasksEnabled
in interface IHWMWorkflow
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 occurspublic void SetTaskEnabled(java.lang.String strTaskName, boolean bEnabled) throws java.lang.Exception
SetTaskEnabled
in interface IHWMWorkflow
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 occurspublic void SetTaskState(java.lang.String strTaskName, int nState) throws java.lang.Exception
SetTaskState
in interface IHWMWorkflow
strTaskName
- The name of the tasknState
- The task state
java.lang.Exception
- If the task is not presentpublic void SetTaskPlayOption(java.lang.String strTaskName, int nPlayOption) throws java.lang.Exception
SetTaskPlayOption
in interface IHWMWorkflow
strTaskName
- The name of the tasknPlayOption
- The task's play option
java.lang.Exception
- If the task is not presentpublic int GetCurrentTaskState() throws java.lang.Exception
GetCurrentTaskState
in interface IHWMWorkflow
java.lang.Exception
- If the current task is nullpublic int GetCurrentTaskPlayOption() throws java.lang.Exception
GetCurrentTaskPlayOption
in interface IHWMWorkflow
java.lang.Exception
- If the current task is nullpublic int GetTaskState(java.lang.String strTaskName) throws java.lang.Exception
GetTaskState
in interface IHWMWorkflow
strTaskName
- The name of the task
java.lang.Exception
- If the task is not presentpublic int GetTaskPlayOption(java.lang.String strTaskName) throws java.lang.Exception
GetTaskPlayOption
in interface IHWMWorkflow
strTaskName
- The name of the task
java.lang.Exception
- If the task is not presentpublic void Play() throws java.lang.Exception
Play
in interface IHWMWorkflow
java.lang.Exception
- If the current task is null or not playablepublic void Play(java.lang.String strTaskName) throws java.lang.Exception
Play
in interface IHWMWorkflow
strTaskName
- The name of the task to play
java.lang.Exception
- If the task is not present or not playablepublic void Run() throws java.lang.Exception
Run
in interface IHWMWorkflow
java.lang.Exception
- If any error occurspublic void Run(java.lang.String strTaskName) throws java.lang.Exception
Run
in interface IHWMWorkflow
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 occurspublic void StopRun()
StopRun
in interface IHWMWorkflow
public boolean IsRunInProgress()
IsRunInProgress
in interface IHWMWorkflow
public void CopyWorkflowStateToActiveRun()
CopyWorkflowStateToActiveRun
in interface IHWMWorkflow
public void SetWorkflowStateFromActiveRun() throws java.lang.Exception
SetWorkflowStateFromActiveRun
in interface IHWMWorkflow
java.lang.Exception
public java.lang.String GetImageFilenameOnPage()
public java.lang.String isImageFileVisibilityStatusOnPage()
public static HWMGraphView getGraphViewMgr()
public java.util.Vector GetAllTaskNamesAlongWithRootTask()
public void SetTaskDockable(java.lang.String strTaskName, boolean bDockable) throws java.lang.Exception
SetTaskDockable
in interface IHWMWorkflow
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 occurspublic void SetTaskDockable(java.lang.Object objSrc, HWMWorkflowNode hwmNode, boolean bDockable) throws java.lang.Exception
objSrc
- The source for this callhwmNode
- The task node whose dockable state should be changedbDockable
- The dockable state
java.lang.Exception
- If the task is not presentpublic boolean GetTaskDockable(java.lang.String strTaskName) throws java.lang.Exception
GetTaskDockable
in interface IHWMWorkflow
strTaskName
- The name of the task, whose dockable property is to be known
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 |