HyperWorks Tools

Workflow

Workflow

Previous topic Next topic No expanding text in this topic  

Workflow

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

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.

Note:Please contact Altair to obtain JavaDocs (a complete list of the methods provided by the IHWMWorkflow interface).