cancel
Showing results for 
Search instead for 
Did you mean: 

What should be result of activiti:out in MultiInstance CallActiviti

smirzai
Champ on-the-rise
Champ on-the-rise
This is related to  https://jira.codehaus.org/browse/ACT-2036

here is the scenario:
There is a MultiInstance CallActiviti, which contains activitiSmiley Surprisedut output variables. Then CallActivity may be called several times. The question is which output should be put to output variables.


There are 3 thinkable solutions:

1. Return the value from the last execution.
2. Do not accept the model and throw exception before execution, when parsing.
3. For each variable, instead of the mentioned variable, return a collection of variable in different executions.


Right now the engine is silent and just ignores the out variables. I think this could be enhanced.



1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi Saeid,

Yes the output variables are a problem with multi instance call activities.
Solution 3 would the best way to solve this to my opinion.
But a collection of variables is maybe not the best way to do it, because of threading issues.
Maybe each variable name could be appended with the multi instance index value. So you would get name0, name1, name2 for example.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.