Skip to content

Signal behavior #342

Answered by cschleiden
mandeepbrar asked this question in Q&A
May 6, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You do want to have a well-known name for the signal channel and then send the token as part of the payload. So I'd do something like:

const chanName = "token-signal"


// workflow
token, err := workflow.NewSignalChannel[string](ctx, chanName).Receive(ctx)

// url handler
c.SignalWorkflow(ctx, wf.InstanceID, chanName, token)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mandeepbrar
Comment options

Answer selected by cschleiden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #341 on May 06, 2024 16:31.