Skip to main content

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:

  1. Detail Information: Enter the publication details.
  2. Assortment: Upload data for import and planning.
  3. Planning: Review the imported products and items.
  4. Rendering: Select a PDF profile, render the publication, and download the PDF.

The four wizard steps of import-based rendering

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.

W2P generic importing and planning process

The Import process service task uses the following parameters:

ParameterDefault value
importConfigIdDefault
successFolder/opt/pubserver/userdata/hotfolder/success/
errorFolder/opt/pubserver/userdata/hotfolder/error/
importFolder/opt/pubserver/userdata/hotfolder/import/
productEntityIdproduct

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.

W2P generic create PDF document process

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.

W2P generic import rendering and export PDF process

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:

OrderStep IDPurpose
1generic_import_detailEnter publication details.
2generic_importUpload data and run W2P_GENERIC_IMPORTING_AND_PLANNING.
3generic_import_planningReview the imported and planned products and items.
4generic_import_renderSelect a PDF profile, run W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDF, and enable PDF download when rendering finishes.

Wizard steps for import-based rendering

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.

Generic import wizard step

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.

Generic import render wizard step

The generic_import_render step in the wizard configuration.

Further Reading​