Bookshelf Home | Contents | Index | PDF |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Data Mapping Using Scripts > MIME Message Objects and Methods > CSSEAIMimeMsgInThis object represents an input MIME Message, open for reading. The MIME message is in the property set format generated by the EAI MIME Doc Converter. The object consists of a series of MIME parts forming the different pieces of the message. This object provides GetArgument, GetPartCount, GetPart, GetPartByCID, GetAttachmentByCID, and GetXMLRootPart methods. GetArgument() MethodThis method gets the value of a business service argument. For example, this could get the name of a map function in the business service. Table 36 presents the parameters for this method. SyntaxGetArgument(name [, defaultIfNull [, defaultIfEmpty]])
ReturnsUsageUse this method to get the value of an argument passed to the business service. For example, if the MapName argument passed to the business service is MapExtOrderToOrder intMsgIn.GetArgument("MapName"); returns the name of the map, MapExtOrderToOrder If the named argument does not exist, The arguments defaultIfNull and defaultIfEmpty are optional; however, if you specify defaultIfEmpty, you must also specify the defaultIfNull argument. GetPartCount() MethodThis method returns the number of parts in the MIME message. Table 37 presents the parameter for this method. SyntaxReturnsThis method returns the number of parts in the MIME message. GetPart() MethodSyntaxReturnsProperty set. Returns the part, a property set, specified by the index. The index is zero based. Returns null if the index is out of bounds. GetPartByCID() MethodRetrieve a MIME part based on the MIME Content Identifier (CID). Table 38 presents the parameter for this method. SyntaxReturnsReturns null if there is no part with the specified CID. GetAttachmentByCID() MethodThe same functionality as CSSEAIMimeMsgIn.GetPartByCID. Supports using a CSSEAIMimeMsgIn as an attachment source for copying attachments to output objects. Table 39 presents the parameter for this method. SyntaxReturnsThe attachment (a property set) specified by the CID. Returns null if there is no attachment with the specified CID. GetXMLRootPart() MethodFinds the first MIME part that is an XML message in property set format and returns the root element of the XML document. The XML message must be in property set format as produced by the XML Hierarchy Converter Business Service. An error is raised is the XML message is not found. The method is intended for use with MIME messages that consist of an XML message and a series of related attachments. The property set returned is consistent with what XPSGetRootElement returns, and can be accessed with the XML Property Set functions. See XML Property Set Functions. SyntaxReturns |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV |