Activity execution is terminated

Moderator: Moderators

Activity execution is terminated

Postby Staralama » Mon May 02, 2016 11:11 pm

Hello,

Could you please assist with the following problem?

Problem description:
When executing an activity the simulation terminates after passing through the first action (action1), which is call behaviour type of action. In the console dialog box a warning message appears: "WARN: missing input parameter value for Activity".

Hypotheses:
1) Input parameter value not defined.
2) Token disappeared when entered first action (callbehaviour action).

The test has been run where the number of required tokens on pins is set to 0 (optional). The result was:
• Activity was fully executed
• The execution log still indicates that there is missing input parameter value

if I change the requirement for the number of tokens on pins to be equal or greater than 1 then the simulation terminates as described initially.
This test seems to support hypotheses 1 and 2.

If this is the case then my question is:
1) How to define input parameter value and how to convey that information via callbehaviour actions?
2) How to pass tokens via callbehaviour action within an activity diagram?

I've attached the model for your reference.

Thanks,

staralama
You do not have the required permissions to view the files attached to this post.
Staralama
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Mon May 02, 2016 8:50 pm

Re: Activity execution is terminated

Postby zilvinas.strolia@nomagic.com » Tue May 03, 2016 8:18 am

Dear Staralama,

In your model information goes into call behavior action element but activity which defines behavior of that action element does not contain any actions.
Activity is a container but itself it does not do any actions. You should create activity diagram and define what that activity should do.
If you only want to convey data with call behavior action within activity which defines behavior you should connect in and out parameters with object flow. Please see the attached sample model (training_updated.mdzip).

Best Regards,
No Magic Inc. Customer Support
You do not have the required permissions to view the files attached to this post.
zilvinas.strolia@nomagic.com
Forum Beginner
Forum Beginner
 
Posts: 35
Posts Rating:3
Joined: Fri Dec 04, 2015 2:18 am

Re: Activity execution is terminated

Postby bartosz.gierasimiuk@gmail.com » Tue May 03, 2016 7:05 pm

Dear Zilvinas,

Thank you for the explanation and the updated sample model. This was really helpful.

Kind regards,

staralama
bartosz.gierasimiuk@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue May 03, 2016 6:55 pm


Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 0 guests