Hi there!
I call the same named workflow twice, so it is imported with aliases. When this subworkflow prints or `view` something, I would like to know from which “aliased workflow” the message came from.
Here is a dummy example:
// main.nf
include { sub as subA;
sub as subB } from './subworkflows.nf'
subA()
subB()
// subworkflows.nf
workflow sub {
main:
some_processes
| view { "In workflow ${thisworkflow.aliasName}: $it" } // imaginary syntax
}
Wanted output:
In workflow subA: xyz
In workflow subB: xyz
This would be useful for logging purposes, but maybe there’s a better way to solve this problem.
One other possibility would be to provide params specifically to each workflow alias, but I don’t think that’s possible?
Thanks in advance!