Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Output for Parallel Loop Conditions #22

Open
FlorianDue opened this issue Jun 15, 2023 · 2 comments
Open

Missing Output for Parallel Loop Conditions #22

FlorianDue opened this issue Jun 15, 2023 · 2 comments
Labels
enhancement New feature or request priority: low This issue has a low priority

Comments

@FlorianDue
Copy link

FlorianDue commented Jun 15, 2023

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.

@maxhoerstr maxhoerstr added the enhancement New feature or request label Jun 15, 2023
@ptrdtznr
Copy link
Member

From my understanding, you would like you store the return values of each service/ task call instead of keeping the last one?

@FlorianDue
Copy link
Author

Partial. The main issue is that when individual array elements of a variable are passed as input to a service or task within a parallel loop, these array elements should be able to be placed at the same array position as output of a service/task. Currently, it is only possible to return the entire array and thus the values from individual tasks are lost since the entire array is defined as output and stored in the same variable. Therefore, for each individual output of the parallel loop, a new value is assigned to the variable instead of just a single array position within the variable

@maxhoerstr maxhoerstr added the priority: low This issue has a low priority label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low This issue has a low priority
Projects
None yet
Development

No branches or pull requests

3 participants