In parallel Loop Conditions it is possible to hand over a specific position of an array variable to a task/service. E.g.
Parallel Loop i To cr.parts_count
paintingAndCuttingTask
In
cr.sheet_parts[i]
However, it is not possible to specify such a field position as output. As a consequence, it is not possible to specify an output for parallel loops since there will be a loss of data if the whole array is defined as input and output, e.g.
cr{
sheet_parts = [0,0,0],
parts_count = 3
}
Parallel Loop i cr.parts_count
paintingAndCuttingTask
In
cr.sheet_parts
Out
cr.sheet_parts
Here, each of the parallel tasks get the initial input value sheet_parts = [0,0,0]. Since the output of each task writes the variable cr.sheet_parts, the results of the first two paintingAndCuttingTasks that are finished are lost and only the one that finished last is saved.
In parallel Loop Conditions it is possible to hand over a specific position of an array variable to a task/service. E.g.
However, it is not possible to specify such a field position as output. As a consequence, it is not possible to specify an output for parallel loops since there will be a loss of data if the whole array is defined as input and output, e.g.
Here, each of the parallel tasks get the initial input value sheet_parts = [0,0,0]. Since the output of each task writes the variable cr.sheet_parts, the results of the first two paintingAndCuttingTasks that are finished are lost and only the one that finished last is saved.