Is is possible to represent an internal transition (event, guard and activity) for a particular state other than for the reserved entry, exit and do events?
Thanks.
Hi Simon,
Thanks for your post. I’m sorry that I’m not quite understand what do you want, would you mind to give some examples? Thanks!
Best regards,
Lilian Wong
How to represent the following example:
A state (eg DisplayingConfig) needs to handle an event (eg FieldChanged).
On receiving the event FieldChanged, an action must be triggered (eg RefreshView), but throughout this activity the system stays the DisplayingConfig state.
Thanks.
Hi SimonD,
Thanks for replying. Please take a look at the attached image, is it the transition you need?
Best regards,
Lilian Wong
internal_transition.png
Hi Lillian
(Appologies if this is a repeat, but I think I took so long writing a reply that the forum may have logged me out first time!)
Anyway, thanks for your quick response, although it’s not quite what I was trying to describe.
I see from your example that VP has the ability to define this transaction as “internal”, but from a graphical point of view it is actually showing a “self-transition”, where the state exits and re-enters itself.
An internal transition does not exit the state. I have (hopefully!) attached a UML representation of the example I previously mentioned.
(As a suggestion if it can’t be done graphically in VP, maybe a stereotype should be added on the transition line to at least give a visual clue that the transition is internal?)
Thanks
Simon
InternalTransition.png
Hi Lilian
Thanks for your quick response, although it’s not quite what I was trying to describe.
I see from your example that VP has the ability to define this transaction as “internal”, but from a graphical point of view it is actually showing a “self-transition”, where the state exits and re-enters itself.
An internal transition does not exit the state. I have (hopefully!) attached a UML representation of the example I previously mentioned.
(As a suggestion if it can’t be done graphically in VP, maybe a stereotype should be added on the transition line to at least give a visual clue that the transition is internal?)
Thanks
Simon
InternalTransition.png
Hi Simon,
Sorry for my misunderstanding. Please add region on state (right-click on the state to select Add Horizontal/Vertical Region) and open the Specification dialog of the region, then switch ti Internal Transitions tab to add the internal transition there.
Best regards,
Lilian Wong
internal_transition02.png
Hi Lilian
This was exactly what I was looking for.
Many thanks!
Regards
Simon
Hi Simon,
It’s my pleasure. Please do not hesitate to contact me if you need any help.
Best regards,
Lilian Wong
Excellent! I was also looking for this
You are welcome. Feel free to post again if you have any other questions.