helper produces execution error:java.lang.RuntimeException.Can you help me,pleas [message #88968] |
Tue, 26 August 2008 03:15  |
Eclipse User |
|
|
|
Hello,
I have a helper that return a enumeration, the code is:
helper def :getCardinality (cardinality: Logical!CardinaltyType) :
MCD_MetaModel!TipoCardinalidad =
if (cardinality=#ZERO_TO_MANY) then
#cero_a_muchos
else
#cero_a_uno
endif;
But this code produces a execution error:java.lang.RuntimeException
I want to know how I create a helper that reurn a helper and run OK.
Thank you.
|
|
|
[ATL] Re: helper produces execution error:java.lang.RuntimeException.Can you help me,pleas [message #89033 is a reply to message #88968] |
Tue, 26 August 2008 04:49  |
Eclipse User |
|
|
|
Hello,
Can you please remember to prefix the subject of your ATL-related posts
with [ATL] as I just did in this reply? Thanks.
Your helper has no context, do you call it using "thisModule." ?
Like here :
to var : MM!Element (
cardinality <- thisModule.getCardinality (input.cardinality)
)
Otherwise, check that there is no typo in "#cero_a_muchos" or "#cero_a_uno".
Best regards,
William
Amalia Garcia a écrit :
> Hello,
>
> I have a helper that return a enumeration, the code is:
>
> helper def :getCardinality (cardinality: Logical!CardinaltyType) :
> MCD_MetaModel!TipoCardinalidad = if (cardinality=#ZERO_TO_MANY) then
> #cero_a_muchos
> else
> #cero_a_uno
> endif;
>
> But this code produces a execution error:java.lang.RuntimeException
>
> I want to know how I create a helper that reurn a helper and run OK.
>
> Thank you.
>
|
|
|
Powered by
FUDForum. Page generated in 0.46720 seconds