As with any other type of extension, creating task groups and tasks to be exposed in a Workbench workflow involves the creation, installation, and loading of the custom workflow extension.
The steps to create a custom workflow extension are the same as for any ACT extension. At minimum, you must create the XML definition file, the IronPython script, and any support files (such as task group and task images and custom application executables). The IronPython script and support files should be placed in the extension directory, which is at the same level as the XML file.
For general information on creating extensions, see Creating a Scripted Extension.
For information on how to place your files within the extension, see Setting Up the Directory Structure.
To use the extension you’ve created, you must install it as described in Installing a Scripted Extension.
Once you’ve installed your extension, you can load it into Workbench via the Extension Manager. On loading your extensions, the functionality defined in the extension becomes available.
If you have defined global callbacks, they are invoked within the Project Schematic workflow or other Workbench project location as defined. Each global callback is invoked each time the operation associated with it is performed.
If you have defined custom task groups or tasks, the custom task groups are exposed as systems in a new group in the Workbench Toolbar.
These custom task groups can be added to the Project Schematic. When you invoke an Update operation on a custom task within the task group, the extension can:
Obtain the inputs
Prepare the inputs
Write input files
Run the external solver or performs calculations
Read output files
Set the parameters or properties to the calculated values