8.4
Table Of Contents
- Table of Contents
- Welcome to PReS Workflow 8.4.1
- Basics
- Features
- The Nature of PReS 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
Process Illustration
Task Breakdown
l
The HTTP Server Input task receives a request through the /getinvoice HTTPAction. Because this
task either returns an HTMLpage with an error message or a PDF, the MIMEtype isAuto-Detect.
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 page 304. The condition returns "true"if the file is not found:
c:\PReS\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 page 155 task will suffice, followed by the Delete output task. As we've
already mentioned in "HTTP Server Workflow" on page 138, 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 244 task, and then
deleted (for the same reasons).