Custom Logic Connections

A custom logic connection calls your customized logic whenever the source event occurs. You can use either an event or an attribute as the source for this connection; if you use an attribute, the custom logic is called when the attribute's event is signaled. A custom logic connection appears as a unidirectional light blue arrow with the arrowhead pointing to the edge of the free-form surface.

Use custom logic whenever your connection needs special handling. Like member function connections, custom logic connections cannot be altered by programmers using your part. Unlike member function code, which becomes a member of your composite part, your custom logic code becomes part of the connection. This means that you cannot reuse custom logic by call; you must reenter the code every time.

For example, suppose you want to test an attribute for a specific value before calling an action. Instead of connecting to the action directly, you could write custom logic on the connection: if the attribute is equal to a certain value, call the action. Otherwise, just return.


Related concepts
Connections

Related procedures
Connecting Features to Custom Logic

Related references
Custom Logic Connection Window
VisualAge User Interface Parts