Topic
1 reply Latest Post - ‏2012-12-17T13:38:35Z by DavidSeager
NickLaqua
NickLaqua
17 Posts
ACCEPTED ANSWER

Pinned topic Overriding multiplicities

‏2012-12-17T07:56:48Z |
Hi there,

is it possible to override multiplicities derived from BaseObject in derived objects ? In this case, I want to make the version property of CapabilityVersion mandatory as opposed to being "optional" in BaseObject.

But adding a "version" property to CapabilityVersion doesn't do the job.

any idea ?

thx Nick
Updated on 2012-12-17T13:38:35Z at 2012-12-17T13:38:35Z by DavidSeager
  • DavidSeager
    DavidSeager
    61 Posts
    ACCEPTED ANSWER

    Re: Overriding multiplicities

    ‏2012-12-17T13:38:35Z  in response to NickLaqua
    Properties on the BaseObject are not strictly business model properties, and as such cannot be overridden.

    If you want to make it mandatory, I recommend writing a Governance Policy Validator policy/rule to enforce that it must be set, and you can also enforce it should follow a Regular Expression.

    http://publib.boulder.ibm.com/infocenter/sr/v7r5/topic/com.ibm.sr.doc/rwsr_gov_pol_validator_propertyassertion.html

    You'd want a NotNullConstraint or ValueConstraint for the version property.

    Something like this:

    <wsrrgp:PropertyAssertion wsrrgp:propertyName="version">
    <wsrrgp:NotNullConstraint/>
    </wsrrgp:PropertyAssertion>