|
|
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1802429 is a reply to message #1802411] |
Fri, 08 February 2019 16:57 |
|
Hi,
you have simply to specify the condition (=guard) the path "Open Jira Record" and the condition the path "Solved by Support Team" has to be taken. Because there are no conditions (=guards) the Moka engine is free to choose exactly one path. And as you proved the Moka engine chooses exactly one path.
What you have modeled translates to
if (true) // true, because no guard specified
{
perform "Open Jira Recored"
}
else if (true) // true, because no guard specified
{
// this block will never be executed
perform "Solved by Support Team"
}
/Carsten
[Updated on: Fri, 08 February 2019 17:01] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1805465 is a reply to message #1805287] |
Mon, 15 April 2019 16:02 |
Pauline Deville Messages: 128 Registered: November 2016 Location: Paris Saclay, France |
Senior Member |
|
|
Hi,
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
-
Attachment: Example.zip
(Size: 9.62KB, Downloaded 243 times)
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1805475 is a reply to message #1805465] |
Mon, 15 April 2019 19:50 |
junior developer Messages: 354 Registered: January 2013 |
Senior Member |
|
|
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 88 times)
|
|
|
Re: Dispose execution engine resources.Dispose Moka services [message #1805476 is a reply to message #1805475] |
Mon, 15 April 2019 19:53 |
junior developer Messages: 354 Registered: January 2013 |
Senior Member |
|
|
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 15:03 |
junior developer Messages: 354 Registered: January 2013 |
Senior Member |
|
|
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.06776 seconds