The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Passing values from Java to .rmp
Hello,
I want to make a proccess that will call RM process from java that reads a mysql table. My problem is that I want to define the name of the table outside the RM proccess file. Is there any way of passing any values from my java app to the .rmp with RM functions or i would load .rmp as text, made modifications with regural expressions and then call the process() ?
I need to share the table name from java app to .rmp. or use a java defined mysql shared connection to avoid edditing...
Another solution, is to custom make an operator but I couldnt find any usable examples.
Thx in advance.
I want to make a proccess that will call RM process from java that reads a mysql table. My problem is that I want to define the name of the table outside the RM proccess file. Is there any way of passing any values from my java app to the .rmp with RM functions or i would load .rmp as text, made modifications with regural expressions and then call the process() ?
I need to share the table name from java app to .rmp. or use a java defined mysql shared connection to avoid edditing...
Another solution, is to custom make an operator but I couldnt find any usable examples.
Thx in advance.
0
Answers
please have a look here first, there you can see how to execute processes via java.
On to your question: Yes you can easily ceate the process as described above, then set the parameters of any operators you like via for example Regards,
Marco
I read a 'rmp file', find the xml for the mysql table and change the table name then save file and run().
Thats not the best solution but gave me a hand to move on.
Now I have another poblem... I want to use kMeans from a java Array. Can I have some help on that?
As I thought i should make the array an example table, then exampleSet, then pass it to the kMeans cluster object?
My problem is how can I tell kMeans to get the ExampleSet I ve got as input ? How can I connect the input port with the kmeans?
I found the solution myself (in case everyone else wants to)