Methods in Tcl Modules

The table below outlines the four functions that Process Manager will call (if the module provides them).

  Interactive Mode Replay Mode
DisplayWnd This method is called when you select a task in the process tree. <Never called in Replay mode>
Exec When you click the Apply button. <This method is called for each task>
SetDataInDataModel
  1. When you click the Apply button, this method is called before the Apply button.
  2. When you switch from this task to another (or use Next/Prev buttons), this method is called before DisplayWnd is called on the new task.
 
GetDataFromDataModel <Never called> This method is called before the Exec method is called for each task.
Action Outcome
Select task in process tree DisplayWnd is called on the module associated with that task.
Click Apply.
  1. SetDataInDataModel.
  2. Exec.
  3. Remove the window.
  4. Switch to next task (and call DisplayWnd for the new task's module).
Click Cancel. Removes/Destroys that window.
Click Next or Prev, or select a different task in the process tree.
  1. SetDataInDataModel.
  2. Remove the window.
  3. Switch to new task (and call DisplayWnd for the new task's module).
Replay For each task:
  1. GetDataFromDataModel.
  2. Exec.