Creating a Knowledge Advisor
Reaction: Insert Event
This task explains how to use the Insert
event in a reaction
feature. In the scenario below, the user inserts an element into the
CATProduct document, which displays a message.
The Reaction capabilities require the Knowledge Advisor product.
From the Start->Knowledgeware menu, access the Knowledge Advisor workbench and click the Reaction icon
()
to create a reaction. The reaction dialog box opens.
In the Source type field, select Selection
for the Reaction to be applied to the element you select
and select the syringe in the specification tree).
In the Available events list, select Insert
for the reaction to occur when an item is inserted into
the CATProduct.
In the Action field, select Knowledgeware
action and enter the following message: Message("An element was added to your document").
This message will be
displayed each time you insert a new component into the
CATProduct.
Click OK. A reaction is added to the Relations node in
the specification tree.
Double-click the root of the specification tree, select the Insert->Existing
Component... command and click the root of the specification
tree. The File selection dialog box opens.