file [Modelio 4.0] problem to run a module in a jython script

2 years 7 months ago #5890 by cael

I want to generate the HTML documentation using WebModelPublisher module from a command line. I understood that the way to do it is to write a jython script invoked on the command line.
So I have a shell script that runs Modelio and executes a jython script, that works perfectly.
In my jython script I’m able to get the IPeerModule instance of the WebModelPublisher, but I have 2 issues to run it:
- I want to set the parameters values, so I assume I should use:
getConfiguration().setParameterValue(java.lang.String key, java.lang.String value)
But how can I get the keys ? I tried:
but it returns an empty list.
- And how can I run the module ? Which method can I use to do it ?

Thanks! :-)

Please Log in or Create an account to join the conversation.

2 years 7 months ago - 2 years 7 months ago #5893 by osl
Hi Cael,

The WebModulePublisher module cannot be run in command line with a jython script.

Which services of a module are accessible in command line is for its author to decide, in this case: Modeliosoft.
WebModelPublisher is a free module, but it is not an open-source one.

To automate the generation of documents from a model, you should have a look at Document Publisher, which is the commercial solution.

I have recorded an evolution request for you in the Community forge, although I can't guarantee it will be taken into account:

Best regards

Go pro

Please Log in or Create an account to join the conversation.

Moderators: tmachm
Time to create page: 0.032 seconds
^ Back to Top