Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Contents |
Prev | Next |
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
Ribbon |
Design > Element > Operations > Redefines |
Context Menu |
Right-click element in diagram | Features and Properties | Operations | Redefines or Right-click element in Project Browser | Operations | Redefines or Right-click operation in Project Browser | Operation Properties | Redefines |
Keyboard Shortcuts |
> |
Other |
In Project Browser, double-click on an Operation | Redefines |
Tasks
Task |
Action |
See also |
---|---|---|
Redefine a target element Operation |
Click on the operation, and on the 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 as you click on each one. Click on the . 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 |
Identify Exception Classifier |
Click on the operation and on the beneath the 'Raised Exception' panel. The 'Select Classifier' dialog displays; browse or search through the model hierarchy for the appropriate Classifier. Click on the ; 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 |
Learn more