8.5
Table Of Contents
- Table of Contents
- Welcome to PlanetPress Workflow 8.5
- System Requirements
- 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
- Variable Properties
- Working With Variables
- About Configurations
- About Related Programs and Services
- The Interface
- Copyright Information
- Legal Notices and Acknowledgements
l It checks whether the invoice request exists by checking if the size of the file is less than 1kb using
"File Size Condition" on page358. The condition returns "true"if the file is not found:
c:\PlanetPress\archives\pdf\invoices\xmlget('/request[1]/values[1]/invoicenum
[1]',Value,KeepCase,NoTrim).pdf
Here, the xmlget()function grabs the invoicenum variable from the GET request, which would be
INV999999.pdf in the specified folder.
l If the file is not found, then a simple, basic HTMLpage is created indicating the invoice was not found.
For this, a "Create File" on page181 task will suffice, followed by the Delete output task. As we've
already mentioned in "HTTP Server Workflow" on page162, 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 page289 task, and then
deleted (for the same reasons).
HTTP Brochure Request
This workflow builds on the knowledge acquired in "HTTP PDF Invoice Request" on page166 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 PDFbrochure, which is sent via email.
Resources
l HTTPBrochureRequest.pw7 (PlanetPress Workflow Configuration)
l InformationBrochure.pp7 (PlanetPress Design 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