Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rcptt-users] Invoke-static call

Hi,

Try to add two -args flags like this;

proc "test" [val parent] [val name] {
    invoke-static -pluginId "org.exemple"
                  -className "org.exemple.ClassName"
                  -methodName "methodName"
                  -args $parent 
                  -args $name
}

And then you use it like this;
test "parentValue" "nameValue"


Med Vänliga hälsningar, Best regards

Jonas Älmeblad, Software Developer
Tieto Sweden AB
Product Development Services
email jonas.almeblad@xxxxxxxxx, mobile +46 (0)72 545 23 68, fax +46 (0)90 19 58 00
Kuratorvägen 2B, Box 7135, 90704 Umeå, Sweden www.tieto.com

Please note: The information contained in this message may be legally privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorised use, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You.

Please consider the environment before printing this e-mail.


2015-09-23 13:20 GMT+02:00 MAGGI Benoit <Benoit.MAGGI@xxxxxx>:

Hi,

 

I’m trying to setup  a test using an ECL procedure.

I set up this test [1] but get a parsing exception [2]

 

How can I simply pass the parameter from the proc to the invoke-static ?

 

I checked [3]  and  [4], but didn’t found any answer.

I also checked the git repository [5] but without success.

 

Can anyone redirect me to an example ?

 

Regards,

Benoit Maggi

 

1 : proc "test" [val parent -input] [val name] {

    invoke-static -pluginId "mypluginid"

                  -className "myclassName"

                  -methodName test

                  -args $parent $name

}

2 : Syntax error on line 5, col 32

               at Syntax error (/org.eclipse.papyrus.sysml.rcptt.tests/contexts/procedures/ProcUtility.ctx:5)

3 : http://download.eclipse.org/rcptt/release/1.5.4/doc/ecl/index.html#invoke-static

4 : https://www.eclipse.org/rcptt/documentation/userguide/ecl/new-command-guide/

5 : https://git.eclipse.org/r/rcptt/oorg.eclipse.rcptt/rcpttTests


_______________________________________________
rcptt-users mailing list
rcptt-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/rcptt-users


Back to the top