|
|
|
|
|
Re: Create edges between siblings [message #1565350 is a reply to message #1563632] |
Thu, 15 January 2015 08:16 |
Esteban Dugueperoux Messages: 472 Registered: July 2009 |
Senior Member |
|
|
Hi Maxime,
This is a known limitation of Java service with Acceleo, see warning at
the end of Sirius specifier manual [1].
[1]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html
Best Regards.
Le 14/01/2015 11:04, Maxime Pété a écrit :
> Hello again !
>
> I am still trying to reconnect those edges bt I am facing an issue I
> can't seem to correct.
>
> I have created a sample Java class to test the connections between the
> service and my Sirius model. The class looks like this :
>
> public class ContainerModificationServices {
> public String printFlow1(Flow flow) {
> return "Flow";
> }
>
> public String printFlow2(Flow flow, Integer index) {
> return "Flow";
> }
>
> public Flow insertAction(Flow flow, Integer sourceIndex, Integer
> targetIndex) {
> return flow;
> }
> }
>
>
> I wanted to stay simple to understand what's happening so I only used
> these to write the labels on my Flow containers. When I invoke those
> methods I get the following results :
>
>
> - [self.printFlow1() /] works
> - [self.printFlow2(0) /] doesn't work and I get a message in the console
> which says "!MESSAGE Compilation error for expression
> [self.printFlow2(0)/] : Cannot find operation (printFlow2(Integer)) for
> the type (Flow)"
> - [self.insertAction(1, 3).printFlow1() /] doesn't work and I get a
> message in the console which says "!MESSAGE Compilation error for
> expression [self.insertAction(1, 3).printFlow1()/] : Cannot find
> operation (insertAction(Integer, Integer)) for the type (Flow)"
>
>
> I guess I'm doing something wrong when I pass my Integer parameters but
> I didn't figure out what...
>
> Best regards,
>
> Maxime
--
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.04451 seconds