EWL - Update UML statemachine model [message #1084389] |
Sun, 11 August 2013 08:59  |
Eclipse User |
|
|
|
Hello All,
I am working on updating UML statemachine model using EWL and I have some problem in some part of my implementation.
My problem is about adding guard and effect to transitions of my uml statemachine diagram.
I define new transition with following code:
var oTransition = new Transition;
Then I set values for some properties of this transition with following lines:
oTransition.container = oContainingRegion;
oTransition.source = oSourceState;
oTransition.target = oTargetState;
oTransition.name = 'SomeName';
Also I must to set effect of this transition with this statement:
LS=oSourceState.name
LS is one variable of type String that value of this variable is the name of source state of this transition. Now I want to add this statement in effect of "oTransition", but I don't know how?
Notice: "oTransition" may has other effect and I need to add "LS=oSourceState.name" in effect of "oTransition" without omitting current transition effect.
//TODO: oTransition.effect = oTransition.effect and (LS=oSourceState.name);
Also I have some problem in adding guard of transition. I need to add below constraint in my transition guard:
LS==someName
//TODO: oTransition.`guard` = (LS==someName );
How I can do this?
Best Regards,
Amin
[Updated on: Sun, 11 August 2013 09:00] by Moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.31123 seconds