Skip to main content

Installation and Configuration

Selection-based and import-based Web2Publish rendering use the same installation procedure. The project name, deployment package, required processes, and configuration files may differ depending on the rendering method and use case.

Prerequisites​

Before you begin, make sure that:

  • Web2Publish is installed.
  • ObjectStorage is installed. You need it to upload the document template.
  • A template publication exists, or a document template is uploaded to priint:planner.
  • The Consistent Demo Data is installed. See the Installation Guide.
  • The Web2Publish skeleton package is available on the priint webftp storage, in the priint_suite_accpacks folder under Demo_SkeletonWeb2Publish. Please contact our support for access.

Create the Hotfolder, Success Folder, and Error Folder​

note

You need a hotfolder only for import-based rendering. If you use selection-based rendering, skip this section.

The import process uses these folders to handle the Excel files that users upload. Create them before you run the Camunda processes. The paths must match the paths configured in the processes. Use the Publishing Server installation path for your environment.

The examples use /opt/pubserver. If your Publishing Server is installed somewhere else, replace this path in each command.

  1. Connect to the target server using SSH, or open a terminal on the server.

  2. Create the hotfolder with the success and error folders:

    sudo mkdir -p /opt/pubserver/userdata/hotfolder/success /opt/pubserver/userdata/hotfolder/error
  3. Give the Publishing Server user and group ownership of the hotfolder. The example uses pubserver:pubserver. Replace it if your server runs under another user:

    sudo chown -R pubserver:pubserver /opt/pubserver/userdata/hotfolder
note

You only need to setup the hotfolder if you're planning to use the Import-based rendering publication type.

Step 1: Download and Extract the Skeleton Package​

  1. Open the priint webftp storage.
  2. Navigate to priint_suite_accpacks/Demo_SkeletonWeb2Publish.
  3. Download SkeletonConsistentDemo-<version>.zip for the version you want to install. Please contact our support for access.
  4. Extract the archive.

The extracted archive contains the following files and folders:

File or folderContents
SkeletonConsistentDemo-<version>-install.zipPlugin WAR and ISON XML configuration for a first-time installation
SkeletonConsistentDemo-<version>-update.zipPlugin WAR for updating an existing installation
exampleExample Excel data
bpmCamunda processes required to run the Consistent Demo in Web2Publish
publicationtypePublication type and metadata used by the default configuration

Step 2: Deploy the Skeleton Package​

Use the package that matches your installation.

First-Time Installation​

  1. Extract SkeletonConsistentDemo-<version>-install.zip.
  2. Open the publicationtype/ folder in the extracted package. It contains the following publication type XML files:
FileRendering method
Generic_Import_Based_Rendering.xmlImport-based rendering
Generic_Selection_Based_Rendering.xmlSelection-based rendering
  1. In priint:admin UI, go to Processes > Generic Import. Select process type Import, object type General and process Import PublicationTypes to upload the XML file that matches the rendering method you want to use:

    • Import-based rendering: Upload Generic_Import_Based_Rendering.xml.
    • Selection-based rendering: Upload Generic_Selection_Based_Rendering.xml.
    • Both rendering methods: Import both XML files. For metadata descriptions and default values, see Publication Type Metadata.
  2. Deploy the extracted installation package using the package deployment process in priint:admin UI, as described in Using Accelerating Package in your Project.

Update an Existing Installation​

  1. Extract SkeletonConsistentDemo-<version>-update.zip.
  2. Deploy the extracted update package using the package deployment process in priint:admin UI, as described in Using Accelerating Package in your Project.

This installs the base skeleton. The next steps add the processes and configuration for your rendering method.

Step 3: Deploy the Camunda Processes​

The demo needs a set of Camunda processes. Deploy the processes listed below. You find them in the bpm folder of the Demo_SkeletonWeb2Publish package.

No.ProcessObject typeProcess typeDescription
1W2P_GENERIC_IMPORTING_AND_PLANNINGFOLDER_PUBLICATIONUPLOAD_PROCESSImport and plan data
2W2P_GENERIC_DOCUMENT_RENDERINGDOCUMENTSERVICE_PROCESSRender a document
3W2P_GENERIC_CREATE_PDF_DOCUMENTDOCUMENTSERVICE_PROCESSCreate the PDF of a document
4W2P_GENERIC_IMPORT_RENDERING_AND_EXPORT_PDFFOLDER_PUBLICATIONDOWNLOAD_PROCESSRender and retrieve the PDF result
5W2P_GENERIC_SELECTION_RENDERINGFOLDER_PUBLICATIONDOWNLOAD_PROCESSRender a publication

Step 4: Configure the Publication Type​

Tell Web2Publish which publication types to use. Each publication type gets a new ID when you import it, so the ID is different on every system. Set the IDs in each system.

  1. Go to Publications > Publication Types. Open the context menu of an imported publication type and select Copy ID to Clipboard.

    copyid.png

  2. Open this ISON configuration:

    com.priint.w2p.config.W2PConfiguration/WerkII/default/default.xml
  3. Find the publicationType entry for your rendering method. Each entry has the placeholder ${publicationTypeId} in its identifier attribute:

    <publicationTypes>
    <publicationType identifier="${publicationTypeId}" name="Generic Import Based Rendering">
    <label>generic_lbl_import_publication</label>
    <wizards>
    <wizard>generic_import_publication</wizard>
    </wizards>
    <teams />
    </publicationType>
    <publicationType identifier="${publicationTypeId}" name="Generic Selection Based Rendering">
    <label>generic_lbl_publication_type</label>
    <wizards>
    <wizard>generic_publication</wizard>
    </wizards>
    <teams />
    </publicationType>
    </publicationTypes>
  4. Replace ${publicationTypeId} with the ID you copied. Make sure the ID belongs to the publication type with the same name as the entry.

  5. Save the file and check in the configuration.

Step 5: Create a Publication Template​

Web2Publish starts every new publication from a template publication. Make sure you understand this concept before you continue. Read the concepts of Web2Publish and how to set up a template publication.

The linked pages describe the generic setup. For the demo, you do not need to create the publication type or its metadata. You imported them in Step 2.

Create a publication template in priint:planner:

  1. Navigate to priint:planner > Publications.
  2. Create a publication and assign the publication type.
  3. Select the publication and click Edit.
  4. Go to Metadata > W2P and select W2P Is Template.
  5. Click Save.

Create a Document​

The template publication needs a document:

  1. Select the publication template.
  2. Click Create document.
  3. Enter a name in Label.
  4. In Document template, select the .indd or .w2ml file that you uploaded earlier.
  5. Check the remaining document settings and confirm.

Create document dialog

Step 6: Verify the Installation​

Open priint:web2publish and verify that the demo is available.

For rendering-method-specific configuration and usage, see the references below.

Further Reading​