Import-Based Rendering
Overview
Import-based rendering lets users import or update data in the system before they build a catalog in Web2Publish. Unlike selection-based rendering, this workflow includes a data import step.
To use it, enter publication details, upload data, review the imported products and items, and render the publication using a PDF profile. When rendering finishes, users can download the resulting PDF.
For installation and configuration, see Installation. This page covers the setup notes that are specific to import-based rendering. For a full walkthrough of this rendering method, see Example.
How It Works
Import-based rendering uses a four-step wizard:
- Detail Information: Enter the publication details.
- Assortment: Upload data for import and planning.
- Planning: Review the imported products and items.
- Rendering: Select a PDF profile, render the publication, and download the PDF.

Detail Information
The generic_import_detail step uses the Web2Publish FORM step to let users enter or update publication metadata.
For the optional duplicate_post_process parameter, see duplicate_post_process.
Assortment
The generic_import step uploads data and runs W2P_GENERIC_IMPORTING_AND_PLANNING to import and plan it. The example uses an Excel file as the data source.
Planning
The generic_import_planning step uses the Web2Publish PLANNING_TREE to review the products and items after the import and planning process.
Rendering
The generic_import_render step runs W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDF.
The user selects a PDF profile before starting rendering. When the process finishes, the wizard enables the PDF download button.
Camunda Process Details
W2P_GENERIC_IMPORTING_AND_PLANNING
W2P_GENERIC_IMPORTING_AND_PLANNING imports the uploaded data into the system and plans it for rendering.

The Import process service task uses the following parameters:
| Parameter | Default value |
|---|---|
importConfigId | Default |
successFolder | /opt/pubserver/userdata/hotfolder/success/ |
errorFolder | /opt/pubserver/userdata/hotfolder/error/ |
importFolder | /opt/pubserver/userdata/hotfolder/import/ |
productEntityId | product |
For the demo, keep the default values for importConfigId and productEntityId. Adjust the folder paths to match directories that exist on the operating system where the import process runs.
The folder paths shown above are examples for Linux. On Windows, change successFolder, errorFolder, and importFolder to match your Publishing Server installation path. Make sure these folders exist before you run the process.
These parameters apply only to the Import process service task. The other service tasks do not require them.
W2P_GENERIC_CREATE_PDF_DOCUMENT
W2P_GENERIC_CREATE_PDF_DOCUMENT creates the PDF of a document through PDF profiles.

No additional parameters need to be configured for this process in the demo.
W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDF
W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDF is the main process called by the import-based rendering wizard. It retrieves the document planning, renders the PDF using a PDF profile, and makes the result available for download.

No additional parameters need to be configured for this process in the demo.
Shared Document Rendering
Import-based rendering also calls W2P_GENERIC_DOCUMENT_RENDERING to render the document. This document rendering process is shared with selection-based rendering.
For details, see Shared Document Rendering.
For process deployment, see Installation.
Wizard Step Definition
The wizard contains the following steps:
| Order | Step ID | Purpose |
|---|---|---|
| 1 | generic_import_detail | Enter publication details. |
| 2 | generic_import | Upload data and run W2P_GENERIC_IMPORTING_AND_PLANNING. |
| 3 | generic_import_planning | Review the imported and planned products and items. |
| 4 | generic_import_render | Select a PDF profile, run W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDF, and enable PDF download when rendering finishes. |

Wizard configuration that defines the four steps of import-based rendering.
The generic_import step calls W2P_GENERIC_IMPORTING_AND_PLANNING to import and plan the data before rendering.

The generic_import step in the wizard configuration.
The generic_import_render step calls W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDF. The user selects a PDF profile before starting rendering.

The generic_import_render step in the wizard configuration.