expired signal URL #1304
-
I am using a signal URL in a workflow to capture an approval from the end users but have a timeout with auto rejection. If the signal URL is clicked after the timeout then it is no longer valid (the workflow has finished) and the user just sees an almost blank page - confusing to our end users. Is there a way to capture these "expired" signal URL and either put out a "this URL expired" message or redirect to another page? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I can think of three solutions to consider:
I think something like option 1 is the best way, because it reduces the amount of code you would need to write yourself and is something more users will benefit from. I will create an issue for that. In the meantime, you might consider going with option 2 or 3 so you don't have to wait for 1 to be implemented. |
Beta Was this translation helpful? Give feedback.
I can think of three solutions to consider:
TriggerEndpoint
controller (which is invoked when using the signal URL generated by Elsa) - this allows your application to handle the response in case there was no workflow found that was waiting for this signal (which usually means the workflow has moved on to another state, such as when a timeout branch executed).TriggerEndpoint
endpoint to figure out if the response was empty or not. If empty, write back a more appropriate response.I think something like option 1 is …