8.4
Table Of Contents
- Table of Contents
- Welcome to PlanetPress Workflow 8.4.1
- Basics
- Features
- The Nature of PlanetPress Workflow
- About Branches and Conditions
- Configuration Components
- Connect Resources
- About Data
- About Documents
- Debugging and Error Handling
- The Plug-in Bar
- About Printing
- About Processes and Subprocesses
- Using Scripts
- Special Workflow Types
- About Tasks
- Task Properties
- Working With Variables
- About Configurations
- About Related Programs and Services
- The Interface
- Copyright Information
- Legal Notices and Acknowledgements
HTTP Brochure Request
This workflow builds on the knowledge acquired in "HTTP PDF Invoice Request" on page 144 and uses a
single process, but in this case it also uses a PlanetPress Connect document which merges the data
received from a browser form with the document to generate a PDFbrochure, which is sent via email.
Resources
l HTTPBrochureRequest.pw7 (PlanetPress Workflow Configuration)
l InformationBrochure.pp7 (PlanetPress Connect Document)
Installation
l Download both files
l Open InformationBrochure.pp7 and send it to PlanetPress Workflow.
l Open HTTPBrochureRequest.pw7 and send the configuration to your local PlanetPress Workflow
service.
l Open your browser to http://localhost:8080/generatebrochure
Task Breakdown
l The HTTPServer Input receives the initial request from the browser.
l Because this is a demonstration, a backup is made of the XMLrequest. 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 Acondition 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.
l If this is the initial request, an HTMLpage is created which contains a form asking the client for a
required full name and email, and optional company name. A checkmark also offers to subscribe
to a newsletter (it is unchecked by default!). The form submits back to the same URL, meaning it
is handled by the same process.
l The file is renamed with the .html extension, so that both the HTTP service and the browser will
recognize it as an HTMLpage. And then, as usual, it is deleted (but still returned to the browser).
l When the condition is false, it means that there is something in the Full Name field. In this case, we
know that the form was filled and submitted back to the process, and we handle the request as such.
l First, we add the full name, email and company information to job informations, in order for them to be
available for the rest of the process.