Page 1 of 1

Activity execution is terminated

PostPosted: Mon May 02, 2016 11:11 pm
by Staralama

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".

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.



Re: Activity execution is terminated

PostPosted: 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

Re: Activity execution is terminated

PostPosted: 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,