Â
I am felling problem in assigning href to UML primityveType. Consider the
example
Â
rule Term2PrimitiveType {
Â
 from
ÂÂs:SBVR!Term(s.meaning.oclIsTypeOf(SBVR!ObjectType)
ÂÂ and (s._expression_.value='integer'
ÂÂÂÂor s._expression_.value='text'
ÂÂÂÂ or s._expression_.value='number'
ÂÂÂÂor s._expression_.value='boolean'))
ÂÂ to
ÂÂt : UML!PrimitiveType (
ÂÂ name <- if s._expression_.value='integer'then 'Integer'
ÂÂÂÂelse if s._expression_.value='text' then 'String'
ÂÂÂÂ else if s._expression_.value='number' then 'UnlimitedNatural'
ÂÂÂÂÂÂelse 'Boolean' endif endif endif
ÂÂ )
ÂÂ}
Â
Excerpt of Output File :
Â
<uml:PrimitiveType xmi:id="_KLe-oHSAEd64neGfJpWtXQ" name="String"/>
<uml:PrimitiveType xmi:id="_KLe-oXSAEd64neGfJpWtXQ" name="Integer"/>
<uml:PrimitiveType xmi:id="_KLe-onSAEd64neGfJpWtXQ" name="UnlimitedNatural
/>
Â
But I need to get this :
Â
<uml:PrimitiveType xmi:id="_KLe-oHSAEd64neGfJpWtXQ" name="String" href="">
pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<uml:PrimitiveType xmi:id="_KLe-oXSAEd64neGfJpWtXQ" name="Integer" href="">
pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
<uml:PrimitiveType xmi:id="_KLe-onSAEd64neGfJpWtXQ" name="UnlimitedNatural"
href="">
/>
Â
In this UML data Type has pathmap, can anyone help me out to sort that issue
 or any example in whihc UML model is generated from some other model.
Â
Can anyone have the idea about that and can help.
Thank You.
Â
Â
Â