|
|
|
|
|
|
|
|
|
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1805475 is a reply to message #1805465] |
Mon, 15 April 2019 15:50   |
Eclipse User |
|
|
|
Pauline Deville wrote on Mon, 15 April 2019 19:02Hi,
I don't know exactly what your are doing but it seem that there is no value incoming on the DecisionNode. You say that you need to take the decision according to the value of a property you have, so you should put this value as an input of the decision node.
I propose you an example of a working model. In this model, there are 3 diagrams:
- A factory: create a object of type Class3, call the constructor and call the classifier behaviour of the class3
- A constructor: which initialize the property1 of the instance of the class3
- The behaviour you want to run: read the parameter1 and take one branch or an other branch according to the property value
In this example, according to the value given by the ValueSpecificationAction in the constructor , the main behaviour will take one branch or the other.
HTH,
Pauline
Hi Pauline ,
Thank you very much for answering.I run the program but execution is stop in this point. I share a photo.I'm already doing this way decision node.but Moka does not execute.Moka stops when it comes to the decision node.(Moka not execute).I share photo.I use eclipse-jee-oxygen and I use install Moka plug-in in the eclipse installation. Can you tell me which eclipse version and version of Moka? Can you share download links Eclipse and Moka.
Attachment: test12.png
(Size: 220.73KB, Downloaded 107 times)
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1805476 is a reply to message #1805475] |
Mon, 15 April 2019 15:53   |
Eclipse User |
|
|
|
junior developer wrote on Mon, 15 April 2019 22:50Pauline Deville wrote on Mon, 15 April 2019 19:02Hi,
I don't know exactly what your are doing but it seem that there is no value incoming on the DecisionNode. You say that you need to take the decision according to the value of a property you have, so you should put this value as an input of the decision node.
I propose you an example of a working model. In this model, there are 3 diagrams:
- A factory: create a object of type Class3, call the constructor and call the classifier behaviour of the class3
- A constructor: which initialize the property1 of the instance of the class3
- The behaviour you want to run: read the parameter1 and take one branch or an other branch according to the property value
In this example, according to the value given by the ValueSpecificationAction in the constructor , the main behaviour will take one branch or the other.
HTH,
Pauline
Hi Pauline ,
Thank you very much for answering.I run the program but execution is stop in this point. I share a photo.I'm already doing this way decision node.but Moka does not execute.Moka stops when it comes to the decision node.(Moka not execute).I share photo.I use eclipse-jee-oxygen and I use install Moka plug-in in the eclipse installation. Can you tell me which eclipse version and version of Moka? Can you share download links Eclipse and Moka.
I share my project.
Best Regards
|
|
|
|
|
|
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1805682 is a reply to message #1805641] |
Sun, 21 April 2019 11:03   |
Eclipse User |
|
|
|
Hi Pauline,
Please Help me this issue ? I'm waiting for your reply.
junior developer wrote on Fri, 19 April 2019 13:48Hi Pauline ,
Where is the ValueSpecificationAction ? I want to do as in your example . can you help me apply my example please ? I upload my example .
Pauline Deville wrote on Fri, 19 April 2019 10:34Hello,
As I said : Quote:In this example, according to the value given by the ValueSpecificationAction in the constructor , the main behaviour will take one branch or the other. So in this example to change the used branch, you should change the value of the ValueSpecificationAction in the constructor. An other solution is to use an AddStructuralFeatureValueAction (see clause 16.8.3.3 in [UML 2.5.1]) to change the value of the Property1 of the instance of the Class3.
I am sure this is not exactly what you want to do but I hop it can helps you to adapt it to your use case.
Regards,
Pauline
|
|
|
|
Powered by
FUDForum. Page generated in 0.05561 seconds