Skip to content

Pull out the value from a value channel #2369

Answered by bentsherman
multimeric asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @multimeric , sorry that your question was never answered. I'd like to answer even if you already figured it out since then, because it's an important question that we get from a lot of people. And it's top-rated on the discussions right now 😄

The short answer is that it is not possible to pull a value out of a channel. Once you wrap something in a channel, you can't take it back out. Your "channel only" solution is actually the only solution. The only way to use the values in a channel is with an operator (or a process / subworkflow, which is a "kind" of operator).

Now for a longer answer, and maybe some speculation.

Some folks may remember that in DSL1 you could call .val or .getVal()

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@bentsherman
Comment options

@lishengting
Comment options

@bentsherman
Comment options

@blex-max
Comment options

@bentsherman
Comment options

Answer selected by multimeric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants