The Workflow Manager serves as a handle to the workflow. With the handle to the Workflow, the beans can switch to the next task, previous task, or to any specific task.
import com.altair.hwm.interfaces;
IHWMWorkflow hwmWorkflow = this.GetFrameWork().GetWorkflow();
/**
* The main function wherein, something will be done when the
* button is pressed
*/
public void DoSomething()
IHWMWorkflow hwmWorkflow = this.GetFrameWork().GetWorkflow();
try
hwmWorkflow.NextTask();
}
catch (Exception exception)
exception.printStackTrace();
}
Some of the methods exposed by the IHWMWorkflow interface include:
Method |
Description |
NextTask() |
Go to the next task. |
PrevTask() |
Go to the previous task. |
GotoTask(String strTaskPath) |
Go to the task with given path. |
GotoTaskByName(String strTaskName) |
Go to the task with given name. |
SetCurrentTaskState(int nState) |
Set current task state. |
|