2022.2

Table Of Contents
If the Send Immediate Response to client option is selected, the response file is sent back right away
and the involvement of the input task ends then.
However, if this option is not checked, it means there is a second output that comes out of the HTTP
Server Input task: The last output generated by PReS Workflow is sent back to the initial input, which
is returned back to the client (see "Request/process/response cycle" on page224).
Even if the process ends with a "Delete" on page544 task, it is still returned to the client; deleting the
job file only means you are not doing anything with it locally.
Note: You can serve static resources through PReS, which is especially useful for images, CSS
and JavaScript files. See "HTTP Server Input plugin preferences 2" on page660.
Task properties
General Tab
l
HTTP action: Enter the name of the action requested of PReS Workflow by the client. This name
corresponds to the URL that the client will be accessing. For example, if you enter "MakePDF"
here, you could trigger the process by accessing http://127.0.0.1:8080/MakePDF . This is also
what your HTML Form's action should be.
l
MIME Type: Select the MIME type of the file that will be returned by the plugin.
l
Loop each attachment as a data file: When receiving attachments through a POST request
(HTML Form), this option will make the HTTP Server Input task loop through each attachment.
Each data file is an XML with the accompanied file.
l
Do not include XML envelope: Only active when the previous Loop option is checked.
When checked, the XML file containing the request data will not be available. Only the
attachment itself is sent as a data file.
l
Respond on error: Enter a message to be sent to the client as the output file if the process
encounters an error and is unable to send a reply that includes the actual output file. The inform-
ation can be in any desired format such as HTML or plain text. However, if it must be displayed in
a browser, the format should match the selected MIME type.
This is a variable property box. You can use any combination of text, variables and data selec-
tions; see "Variable task properties" on page289.
Note: This option requires every plugin in the process to be explicitly set to "On Error: Stop
process" (see ), even if the process itself is set to "On Error: Stop process".
l
Send immediate response to client: Do not wait for the process to finish and send a static
HTML or Text file back to the client instead. This prevents any timeout from occurring. When
checking this option, the field under the option is used to select which file to return.
Page 603