-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add Link Call node #3152
Merged
Add Link Call node #3152
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decided to add timeout option to the |
Help text updated. Now ready to merge. |
Great to see this merged. Had a bit play & did a recursive string reverse
Obviously it is of little use other than to demonstrate recursion is possible :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Adds a new 'link call' node that can be used to 'call' a
link-in
node and get a response.To support this behaviour, the
link-out
node has an option to 'return to sender'. When in that mode, if cannot be wired tolink-in
nodes and will send any messages it receives that originated from alink-call
node, back to the calling node.There are some specific restrictions in behaviour:
link-call
node can only send to onelink-in
node. It cannot be used to trigger multiple flows and somehow combine the results. (That could be considered in the future)link-call
node can be configured with a timeout, default 30 seconds. If a response is not received in that time, it will callnode.error()
and trigger any Catch nodes in scope. Note that if the called flow then does response after the timeout, its response will be sent on as normal, but thecomplete
node will not get triggered.link-out
node.link-call
node results in multiple messages being passed to thelink-return
(such as a Split node inside the called flow), then theComplete
node will be triggered after the first of the return messages is received. Similarly, the timeout handling will be cleared when that first message comes back.