Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » helper produces execution error:java.lang.RuntimeException.Can you help me,pleas
helper produces execution error:java.lang.RuntimeException.Can you help me,pleas [message #88968] Tue, 26 August 2008 03:15 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:[ATL]How to get the element type by the element's attribute?
Next Topic:Question about EMFVM
Goto Forum:
  


Current Time: Wed Jul 16 08:25:56 EDT 2025

Powered by FUDForum. Page generated in 0.46720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top