Please note : This help page is for an older version of Enteprise Archtiect. The latest help can be found here.

Redefine Operation and Check for Exceptions

If the parent element of a selected operation is the source element for a Generalize connector, you can configure the operation to redefine an operation in the target element. Also, you can create code in your application to check for an exception and, if one occurs, to switch to the code defined by a Classifier element. You can identify the target operation and/or the classifier element on the Redefines tab.

Access     In diagram or Project Browser:
 
Click on element | Element | Operations (F10) > Operations > Redefines or
Right-click on element | Features & Properties | Operations > Operations > Redefines

Tasks

Task

Action

See also

Redefine a target element Operation

Click on the operation, and on the Add button beneath the Redefined Operation panel.

The Select Operation dialog displays, showing the operations in the target element.

Click on the appropriate operation; if you want to redefine more than one operation in the target element, press Ctrl as you click on each one.

Click on the OK button.

A statement displays in the Redefined Operation panel, of the format:

 

<Package>::<Target Element>.<Operation>

 

On the parent element in a diagram, the Operation compartment shows the complete statement, of the format:

 

<Operation>:{redefines <Package>::<Target Element>.<Operation>

 

If you want to change the redefined operation(s) at any point, return to the Redefines tab and again click on the Add button, and repeat the process. The original selection is replaced by the new selection.

 

 

Select <Item> Dialog

Identify Exception Classifier

Click on the operation and on the Add button beneath the Raised Exception panel.

The Select Classifier dialog displays; browse or search through the model hierarchy for the appropriate Classifier.

Click on the OK button; the name of the parent Package and the Classifier displays in the Raised Exception panel.

If you want to change the Classifier at any point, return to the Redefines tab and again click on the Add button, and repeat the process. The original selection is replaced by the new selection.

 

 

Select <Item> Dialog

Learn more