Batch Generation using REST Requests
You can invoke the Batch API through REST requests. You can expose REST endpoints for other applications to invoke the API to generate documents.
The sample assets provided exposes REST endpoint for generating Interactive Communication documents. The servlet accepts the following parameters:
- fileName - Location of the data file on the file system.
- templatePath - IC template path
- saveLocation - Location to save the generated documents on the file system
- channelType - Print,Web or both
- recordId - JSON path to element to set name of an interactive communication
The following screenshot shows the parameters and its values
Deploy sample assets on your server
- Import ICTemplate using package manager
- Import Custom Submit handler using package manager
- Import Adaptive Form using the Forms and Document interface
- Deploy and start Custom OSGI bundle using Felix web console
- Trigger Batch Generation by submitting the form
recommendation-more-help