Forward Declaration [message #59791] |
Tue, 29 July 2008 09:29  |
Eclipse User |
|
|
|
Hi,
I have the following model:
Activity
While
Flow
Sequence
AtomicActivity
Now I defined a operation maxCount for Activity, which calls the appropriate
operation for the Subtypes. But the SubElements While, Flow and Sequence can
contain Elements of Type Activity. So I should be able to call the maxCount
for Activity again. But all I get is:
"Cannot find operation (maxCount) for the type (Activity))"
The operation requires additionally a parameter, so I can't use derived
Attributes.
Any Ideas how I could solve my Problem? Is there the possibility to make
forward declarations?
Thanks,
Thomas
|
|
|
Re: Forward Declaration [message #59817 is a reply to message #59791] |
Tue, 29 July 2008 13:20   |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Thomas,
Which version of MDT OCL are you using? 1.2 (Ganymede)?
This sounds like this bug: https://bugs.eclipse.org/187679
If your operation definition is referencing itself, then you should
already be OK. Otherwise, if you define the Activity::maxCount
operation before the one that references it (i.e., earlier in the *.ocl
file), then you should also be OK.
HTH,
Christian
Thomas Kurpick wrote:
> Hi,
>
> I have the following model:
>
> Activity
> While
> Flow
> Sequence
> AtomicActivity
>
> Now I defined a operation maxCount for Activity, which calls the appropriate
> operation for the Subtypes. But the SubElements While, Flow and Sequence can
> contain Elements of Type Activity. So I should be able to call the maxCount
> for Activity again. But all I get is:
>
> "Cannot find operation (maxCount) for the type (Activity))"
>
>
>
> The operation requires additionally a parameter, so I can't use derived
> Attributes.
>
>
>
> Any Ideas how I could solve my Problem? Is there the possibility to make
> forward declarations?
>
>
>
> Thanks,
>
> Thomas
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04977 seconds