The source for a custom logic connection must either be an event or an attribute with an associated event.
The Description field serves two purposes. After you complete the connection, if you select the connection line, the text that you entered in this field appears in the information area at the bottom of the Composition Editor.
When you generate the code for this part, VisualAgeinserts this description in the ITRACE_DEVELOP statement that appears in the dispatchNotificationEvent member function for the connection class. When you run the compiled application with tracing set on, VisualAge write this description to the trace destination whenever the connection code runs.
This field contains the return type for your custom logic. If you want to pass a return value from your custom logic, change the return type from the default void to the type of data that you want to pass.
The Custom Logic field is a multiline entry field, where you enter your custom logic.
You can specify whether your custom code affects the source or the target part by selecting the appropriate push button before entering a line of code.
Select the Event push button to insert a reference to the source of the connection (an INotificationEvent). The event reference gives you access to the data that is passed by the event. You might use this to test for specific event data and do processing based on the result of the test.
Custom Logic
Connections
Connecting Features to Other Features
Connecting Features to Member
Functions
Opening Connection Settings
Reordering Connections
Selecting and Deselecting
Connections
Changing the Source and Target of
Connections
