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 of the Properties window for Operations.
Access
When you have displayed the Properties window, click on operation in a diagram or the Project Browser.
Ribbon |
Design > Element > Properties > Properties > Redefines Design > Element > Features > Operations: right click on an operation | Properties window > Redefines Start > Explore > Properties > Properties > Redefines |
Keyboard Shortcuts |
> Redefines |
Tasks
Task |
Action |
See also |
---|---|---|
Redefine a target element Operation |
Click 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 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