-
Key: OCL25-119
-
Legacy Issue Number: 18255
-
Status: open
-
Source: Model Driven Solutions ( Dr. Edward Willink)
-
Summary:
OCL 9.4.5 gives no recommendation on how to handle the multiple out capability of UML.
Suggest that the mapping of a UML operation with out or inout parameters to an OCL operation do the following:
remove all 'out' parameters from the OCL parameter list so that the OCL parameter list contains only 'in' and 'inout' parameters with 'read-only' behavior
change the return type to a Tuple whose part-names and types are determined by the conventional 'result' and the 'out' and 'inout' parameters.
It is also desirable to relax the upper multiplicity bound to allow multiple bodyExpressions in Complete OCL, one bodyExpression per returning parameter.
-
Reported: OCL 2.3.1 — Fri, 9 Nov 2012 05:00 GMT
-
Updated: Thu, 8 Oct 2015 14:12 GMT
OCL25 — Align OCL with out/inout UML Operation Parameters
- Key: OCL25-119
- OMG Task Force: Object Constraint Language 2.5 RTF