Skip to content

Multiple subworkflow executions #5162

Answered by Subject-13
PeterP-GH asked this question in Q&A
Discussion options

You must be logged in to vote

I see. It is difficult to find a solution without precise background information, but I have an idea that might help you.

After filtering, you could group the files according to their path so that files from the same directory are in the same group.

You could therefore expand your channel beforehand and write your files in tuples.

input = input.map { it -> [it.getParent(), it] } would add tuples to your channel elements and extend the file path. In the next step, you could now group the same file paths using groupTuple.

input = input.groupTuple(by: 0).

Now you would have your files sorted by their path. For further steps you could make use of the file path. For example, in a process direc…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@PeterP-GH
Comment options

@Subject-13
Comment options

@PeterP-GH
Comment options

@Subject-13
Comment options

Answer selected by PeterP-GH
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants