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 Operation 'Properties' dialog.
It is also possible to add or change these properties in the 'Raised Exceptions' and 'Redefined Operation' fields of the Properties window for an operation.
Access
Context Menu |
On an open diagram, click on an operation and then right-click | View Properties > Redefines In the Browser window, right-click on an operation | Properties | Properties > Redefines |
Tasks
Task |
Action |
See also |
---|---|---|
Redefine a 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. You can also add or change a redefined operation (with a little more knowledge of your element structures) in the 'Redefined Operation' field of the Properties window for the operation.
|
Select |
Identify Exception Classifier |
If you want to change the Classifier at any point, return to the 'Redefines' tab and 'Raised Exception' panel and again click on the Add button, repeating the process. The original selection is replaced by the new selection. You can also add or change the Exception Classifier through the Properties window for the operation.
|
Select |