Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-dev] Fwd: Re: help required (copying attributes value of elements)

Please see below...

---------- Forwarded message ----------

> Hi Subramanya,
>
> On May 15, 2014 7:08 PM, "Subramanya K G" <subramanya.kg@xxxxxxxxx> wrote:
> >
> > Hello Christian,
> >
> > Thanks for the quick reply.
> >
> > I have written a small tool to explore the state space programmatically, rather than through UI. So, do you mean adding the parameter "name", to the rule would suffice, and this inturn would pick the value from the model dynamically during the rule execution ??. And this would not need to pass any value for this 'name' attribute ?
>
> Yes, this work through the pattern matching engine. You can maybe take a look at the Java2StateMachine example on the website to see how this can be used.
>
> Cheers
> Christian
>
> >
> >
> > On Thu, May 15, 2014 at 7:02 PM, Christian Krause <henshin.ck@xxxxxxxxx> wrote:
> >>
> >> Hi Subramanya,
> >>
> >> Yes, that's possible. You have to add a parameter to the rule which can be used to match the attribute. In you case it should be called "name".
> >>
> >> Cheers,
> >> Christian
> >>
> >> On May 15, 2014 6:53 PM, "Subramanya K G" <subramanya.kg@xxxxxxxxx> wrote:
> >>>
> >>>
> >>> Hello All,
> >>>
> >>>
> >>> I am using Henshin tool for transformation of Models and have encountered a problem in copying one of the attribute of an element to the other element as shown in the attached henshin rule figure.
> >>>
> >>> -
> >>> As shown in the attached file, MethodService model elements will have a name and my rule has to copy that rule to the MethodServiceDescriptor element's name attribute after transformation.
> >>>
> >>> Is this possible ?? Kindly help
> >>>
> >>> -- Thanks in advance
> >>>
> >>>
> >>>
> >>> Thanks & Regards,
> >>> Subramanya
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> henshin-dev mailing list
> >>> henshin-dev@xxxxxxxxxxx
> >>> https://dev.eclipse.org/mailman/listinfo/henshin-dev
> >>>
> >>
> >> _______________________________________________
> >> henshin-dev mailing list
> >> henshin-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/henshin-dev
> >>
> >
> >
> >
> > --
> >
> >
> > Thanks & Regards,
> > Subramanya
> >
> >
> >
> > _______________________________________________
> > henshin-dev mailing list
> > henshin-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/henshin-dev
> >


Back to the top