2018.2

Table Of Contents
deleting the data file only means you are not doing anything with it locally - it is still
returned to the client.
l If, however, the file is found, then it is loaded with the "Load External File" on page342
task, and then deleted (for the same reasons).
HTTP Brochure Request
This workflow builds on the knowledge acquired in "HTTP PDF Invoice Request" on page192
and uses a single process, but in this case it also uses a PlanetPress Design document which
merges the data received from a browser form with the document to generate a PDF brochure,
which is sent via email.
Resources
l HTTPBrochureRequest.zip (PReS Workflow Configuration)
l InformationBrochure.zip (PlanetPress Design Document)
Installation
l Download both files and unzip them.
l
Open InformationBrochure.pp7 and send it to PReS Workflow.
l
Open HTTPBrochureRequest.pw7 and send the configuration to your local PReS
Workflow service.
l Open your browser to http://localhost:8080/generatebrochure
Task Breakdown
l
The HTTP Server Input receives the initial request from the browser.
l Because this is a demonstration, a backup is made of the XML request. It's not suggested
to do this every time, especially on servers receiving a large number of requests, as these
files do take some amount of space for each request.
l A condition checks whether the form has been submitted, by verifying that one of the
required fields is empty. If it is, it means this is the initial request, so the condition
becomes true.
Page 194