UML 2.2 RTF Avatar
  1. OMG Issue

UML22 — Default values for ValueSpecification are not specified properly

  • Key: UML22-79
  • Legacy Issue Number: 8450
  • Status: closed  
  • Source: Adaptive ( Mr. Pete Rivett)
  • Summary:

    There are a few cases when the default is documented as a ValueExpression, as follows:

    • JoinNode.joinSpec = {default value is" and"}
    • ActivityEdge.guard= {default value is "true"}

    These defaults are currently just plain text in the Rose Model displayed under the ValueSpecification as shown in figure 185 in the superstructure specification.

    They should be included formally in the model. However it is not clear that the UML2 notation text allows defaults for association ends, and that those defaults can include expressions that construct instances of classes such as ValueSpecification. For example, the notation for ActivityEdge::guard in figure 185 could be:

    +guard = LiteralBoolean(true)

    The default value for guard is set to a newly constructed LiteralBoolean (a ValueSpecification) with value true.

    Recommendation:

    Ensure the text notation for default values includes the ability to construct InstanceSpecifications, and that the notation supports defaults for properties on association ends.

  • Reported: UML 1.4.2 — Fri, 4 Mar 2005 05:00 GMT
  • Disposition: Resolved — UML 2.2
  • Disposition Summary:

    No Data Available

  • Updated: Fri, 6 Mar 2015 20:58 GMT