Configuring the RoundTrip API
About this task
The RoundTrip JavaScript API supports JavaScript communication with the viewer during a Redaction or Document Builder process.
See the general flow of using this API in the following steps.
Procedure
- Open a document.
- Check out the document.
- Edit the document, or add redaction.
- Undo the check-out or set commit parameters.
- Perform specific actions in Edit mode.
- Commit the updated document.
- The
taskStartevent (event ID: 78) is fired, and if you listened for this event, you must call the associated callback. - The
taskStartedevent (event ID: 79) is fired if your call to thetaskStartcallback allowed this. - The
taskStatusevent is fired one or more times as the output is produced, and one last time specifying that the document has completed building or that redaction has completed.
What to do next
See RoundTrip events to find the list of calls and the information they supply, as
well as any information that your client is expected to respond with. To listen to
RoundTrip events, all RoundTrip events must be registered.