file Adding information to a model

6 years 7 months ago #2060 by osl
Hi Ruuddb,

Here's how to proceed:

1. create a state
2. create a "do/.." Internal Transition (in the diagram palette)
3. in the Element view, change the value of "Received event"



Go pro
Attachments:

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

6 years 7 months ago #2061 by ruuddb
Thank you.

However, I would like to enter multiple lines of
executable code into the Entry/Do/Exit text block,
not only some kind of function call.

Is this possible?

Best regards,

Ruud

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

6 years 7 months ago #2062 by osl
You could copy/paste your code into the "Expression of the action" field (it supports multiple lines).

Go pro

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

6 years 7 months ago #2063 by ruuddb
I.m sorry,pasting multiple lines does not work.

Also, that's not what I'm looking for.
I would like to use it as a modeling tool including code
generation.

The idea is to enter/change entry/do/exit code
during development in an iterative way.

Regards,

Ruud

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

6 years 7 months ago - 6 years 7 months ago #2064 by osl
Hi Ruud,

Modelio generates code from the Class model only.

To generate code from Class model AND State machine, you have the possibility to create your own module. This requires advanced skills, but a tutorial is available here , and you can get help from the community on this forum.

Best regards

PS: here's an example of an Internal transition with several lines:


Go pro
Attachments:

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

6 years 7 months ago #2067 by ruuddb
I see multiple lines should be possibel, however, I'm not able
to achieve this.

The generation of code is no problem as long as I can access every model
item via the API.

Best regards,

Ruud

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

Moderators: tmachmaab
Time to create page: 0.256 seconds
^ Back to Top