When you have a process that will take longer than 5 seconds to complete, you can put the workflow into a paused state via a workflow integration step. Then, you can accomplish what you need, and when you are ready, resume the workflow.
How to Put a Document in Workflow in a "paused" State
At the time an integration step is executed, your API must return a response within 5 seconds in order to prevent an error status.
In order to put the workflow in a paused state, send a response within 5 seconds that includes a status code of 202
. From the point we receive that status, the workflow will pause on that integration step until you decide to move it forward.
The original request sent from the integration step will include a header under the key of X-Response-URL
. When your process is complete, make an HTTP POST request to the URL provided on the X-Response-URL
header. If you would like to provide a status code other than 200, you can set the X-Status-Code header with the value of the status code you would like to convey to Kuali. It does not make a difference if your process takes 6 seconds or 6 days, the process to follow is the same.
Comments
0 comments
Article is closed for comments.