Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 6 HTTP Palette : Wait for HTTP Request

Wait for HTTP Request
Activity
Waits for an incoming HTTP request in a process definition. The process instance suspends until the incoming HTTP request is received.
See Scalability With Incoming Events in TIBCO ActiveMatrix BusinessWorks Process Design Guide for information on running the "Wait for..." activities in a multi-engine mode.
Configuration
The Configuration tab has the following fields.
The HTTP Connection shared resource that describes the host name and the port number on which the process waits for the incoming message.
See HTTP Connection for more information about specifying shared resources.
Note: In the case of an incoming GET request, there is no message body, so this field has no effect on incoming GET requests.
Note: Specifying parameters in this field parses the query string of the request into the output schema, regardless of whether the Parse Post Method Data field is checked. Checking the Parse Post Method Data field and specifying parameters here is required to parse the message body along with the query string of the request.
Event
The Event tab has the following fields.
For example, you may have sent an HTTP request earlier in the process, and you may be waiting for a response from the HTTP server. You may specify a requestID as an attribute of the HTTP request and responseTo attribute on the Wait for HTTP request activity. The HTTP server presumably will set the responseTo attribute of its response to the same value as the requestID attribute of the request. You would then specify the responseTo attribute as the Candidate Event Key and the requestID attribute of the HTTP request as the "key" in the Input tab.
This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO ActiveMatrix BusinessWorks Process Design for more information about XPath expressions.
 
Output Headers
The Output Headers tab describes the data structure for the headers of the HTTP request. You can use the default structure, or you can alter the structure, if the incoming request has a specific data structure for the header of the request. This tab uses the same mechanism described Appendix A, Specifying Data Schema in to specify the data structure for the headers. See that section for more information about creating a customized data structure.
Header structure is defined by the HTTP protocol. See the HTTP Protocol specification for more information about the fields and content of the header of a HTTP request. You can obtain this specification at www.w3.org.
The default header fields are the following.
This field specifies the character sets that are acceptable for response messages for the incoming request. For example, iso-8859-5, unicode-1-1. Character sets are described in the HTTP specification.
This field specifies the content-coding values that are acceptable for response messages. For example, compress, gzip. See the HTTP specification for more information about this header field.
This field allows the requestor to specify options desired for this connection. For example, the option close specifies that the requestor would like the connection to be closed when the request is complete.
Input
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about mapping and transforming input data.
The input for the activity is the following.
Output
The output for the activity is the following.
"The header [ headerName ] is defined as non-Repeating Header in Input Headers. This header cannot have multiple occurences in DynamicHeaders."
content-disposition — To suggest a filename for an attachment, use "*;filename=<filename>" in this element. Note: HTTP servers may alter or choose to ignore the suggested name.
See http://www.faqs.org/rfcs/rfc2045.html for more information about MIME headers and their syntax.
Note: When the content type is specified as "text/*" (for example, "text/xml"), the attachment content is expected to be in either the textContent input element or the file name storing the attachment is expected to be in the fileName input element. When the content type is anything other than "text/*", the attachment content is expected to be in either the binaryContent input element or the file name storing the attachment is expected to be in the fileName input element.
Error Output
The Error Output tab lists the possible exceptions that can be thrown by this activity. See TIBCO ActiveMatrix BusinessWorks Error Codes for more information about error codes and corrective action to take.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved