Creating a resume URL for an approval step in advance?
In our usecase, we need to generate a callback URL, send it to an external service (so that it can use the callback URL as a webhook), and then use it in the approval step so that it waits for the trigger.
My naive assumption was that it's possible to have 2 steps: the first one with a call to getResumeURLS() and then, in the second, pass it to the Approval node.
It turned out, however, that the endpoint path is generated relative to the node and job that call the method.
Is there a way to somehow expose a callback URL for approval, known in advance?
Thanks!
4 Replies
It's not possible currently
is it not possible to do it all in one step?
also you can resume a flow without the resume url if you have sufficient privileges (owner of folder OR admin/superadmin)
You would just need the flow id
Thanks for replying.
So probably we will just slightly customize the Approval node so that it also sends the generated callback URL to the external service.
As for your last point about resuming without a resume URL, can you please elaborate a bit?
To clarify, we send "resume_url" to this external service and then the service should call the URL when it has finished data. processing.
If you can do it in a single step, that's the expected design
Got it, thank you!