Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » passing arguments from Java to EOL
passing arguments from Java to EOL [message #1772681] Wed, 13 September 2017 19:22 Go to next message
Kanchan NAir is currently offline Kanchan NAirFriend
Messages: 8
Registered: July 2017
Junior Member

I am trying to pass arguments from .java file to .eol file and wants .eol to use those parameter and do further operation.

If I use below code to pass parameter
Variable parameters = new Variable("messageIds", hashMapSet, EolCollectionType.Set);

I am not sure how .eol file is going to receive it.
I am calling .eol file programatically from java and not running through run configuration.

Is there any other way where arguments can be passed from java to .eol file.

Re: passing arguments from Java to EOL [message #1772719 is a reply to message #1772681] Thu, 14 September 2017 10:07 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 470
Registered: January 2010
Senior Member
That's pretty much what you should be doing, but you should call putGlobal(...) instead of just put(...). See here:

Once you do this, you should be able to use that "messageIds" variable normally from inside your EOL file.

[Updated on: Thu, 14 September 2017 10:08]

Report message to a moderator

Previous Topic:How to store all root elements in a variable using EOL?
Next Topic:Invoking UMLUtil as Native Object fails
Goto Forum:

Current Time: Wed Mar 21 11:19:21 GMT 2018

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

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