Keeping an exact reference to source model element [message #990214] |
Tue, 11 December 2012 13:07 |
Leonid Ripeynih Messages: 150 Registered: February 2012 |
Senior Member |
|
|
Hi! I have a simple rule:
rule Formular2GFElement {
from
c : UML!Class(
c.isFormular
)
to
gf : GF!FGUmlLinked (
name <- c.name,
umlElement <- c,
child <- c.attribute ->
collect(a | thisModule.FProperty2GFElement(a))
)
}
umlElement is of type UML!NamedElement. However, with traceability links it's resolced to 'gf' itself ('/'). How could i resolve it to 'c'?
Many thanks in advance!
[Updated on: Tue, 11 December 2012 13:08] Report message to a moderator
|
|
|
|
|
|
Re: Keeping an exact reference to source model element [message #990720 is a reply to message #990214] |
Wed, 12 December 2012 21:14 |
|
Like this:
umlElement <:= c
(assignment instead of binding)
Dennis
Op 11-12-12 14:07, Dark Diver schreef:
> Hi! I have a simple rule:
>
> rule Formular2GFElement {
> from
> c : UML!Class(
> c.isFormular
> )
> to gf : GF!FGUmlLinked (
> name <- c.name,
> umlElement <- c
> child <- c.attribute -> collect(a |
> thisModule.FProperty2GFElement(a))
> )
> }
>
>
> umlElement is of type UML!NamedElement. However, with traceability links it's
> resolced to 'gf' itself ('/'). How could i resolve it to 'c'?
> Many thanks in advance!
Cheers,
Dennis
|
|
|
Powered by
FUDForum. Page generated in 1.27614 seconds