Using the Instantiate Template Behavior

This scenario provides the expert user with an example of the Instantiate Template behavior. In this scenario the user uses the Instantiate Template behavior to instantiate a tow hook.

This scenario is divided into the following steps:

Remember to save your .CATfct file (step 11) as well as the following files in the directory corresponding to the CATGraphicPath environment variable:

Create a Technological Object

  1. From the Start>Knowledgeware menu, access the Business Process Knowledge Template workbench.

  2. Create the TowHook technological type.

    • Click the Create Technological Type icon () to create a type. The Create technological type dialog box is displayed.

    • Enter the name of the type: TowHook.

    • Click OK to validate.

    At this stage of the scenario, the BKT tree looks like the one opposite.

Add Behaviors to the Technological Type

  1. Click the TowHook type and the Sequence Combination behavior icon () to create a combination of behaviors. 

  2. Double-click SequentialCombination in the Behaviors View and double-click TowHook in the Behaviors tab. The Sequential Combination is displayed in the Behaviors tab.

  3. Double-click the Sequential Combination. The Sequential Combination dialog box is displayed. In the name field, enter Instantiate Tow Hook. Click OK when done.

  4. Click the Instantiate Tow Hook combination and click the FilterCatalog icon (). The FilterCatalog behavior is displayed

  5. Double-click the FilterCatalog node. The Filter Catalog editor is displayed.

    • In the Name field of the opening dialog box, enter DocumentTemplate_catalog.

    • Click OK to validate.

  6. Click the Instantiate Tow Hook combination and click the Bind Object behavior icon ().

  7. Double-click the Bind Object node. The Bind Object editor is displayed.

    • In the Relative Name field, enter ../../..

    ".." indicates that the bind must be performed on the upper level. In the current context, you go up 3 levels to reach the root product.

    • Click OK to validate

  8. Click the Instantiate Tow Hook combination and click the Instantiate Template behavior icon (). InstantiateTemplate is displayed in the Behaviors tab.

  9. Double-click the InstantiateTemplate node. The InstantiateTemplate editor is displayed.

    • Click the Template feature field, expand the DocumentTemplate_catalog node and click the output feature. DocumentTemplate_Catalog\Feature is displayed in the Template feature field.

    • Click the Destination field, expand the BindObject node and click the output link. BindObject\Link is displayed in the Destination field.

    • From the Valuation mode scrolling list, select UseIdenticalName.

    • Click OK to validate.

    At this stage of the scenario, the behaviors tree looks like the one opposite.

Generate the Workbench

  1. Save the .CATfct file.

  2. Click the Generate Applicative Workbench icon () to generate the user workbench. Enter the name of the workbench, Instantiating_DocumentTemplate in this example, select Product from the Workbench type scrolling list, and click OK to validate. The generated workbench opens.

Test the Workbench

  1. From the Tools>Options...>Knowledgeware>Business Process Knowledge Template menu, select All Users from the Access Rights scrolling list and click OK to work in a User environment.

  2. Open the BktReceivingProduct.CATProduct file in the user workbench. The following picture is displayed.

  1. Click the root of the specification tree, the icon, the root of the specification tree, and click the TowHook icon to type the product.

  2. Right-click TowHook (Destination_Product) and select the TowHook(Destination_Product) object>Instantiate Tow Hook command. The Catalog browser is displayed.

  1. Double-click ComponentFamily.2 and AssemblyTemplate. The Insert Object dialog box is displayed. Click Use identical name and OK when done. The document template is instantiated.

For more information about the Certify behavior, see Instantiate Template Behavior: Data Sheet.

Click here to open the created .CATfct file.