Bookshelf Home | Contents | Index | PDF |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Data Mapping Using Scripts > Exception Handling Considerations > Exception Handling FunctionsWhen writing your data transformation scripts, you can use the following functions to handle error conditions: NOTE: Before proceeding, read Exception Handling Considerations. EAIRaiseError() MethodThis method raises a fatal error and terminates the script. Table 57 presents the parameters for this method. SyntaxEAIRaiseError(msg [, formatParameters]) UsageYou can provide format parameters to format the message text. For details, see EAIFormatMessage() Method. EAIRaiseErrorCode() MethodThis method raises a fatal error, terminates the script, and returns an error symbol that it receives from the business service. SyntaxEAIRaiseErrorCode(errorSymbol, msg) UsageYou can use this function when you want to pass an error symbol to a workflow as an indication to branch on an exception. If you are not branching on the specific error code in your workflow, use EAIRaiseError instead. EAIFormatMessage() MethodThis method formats strings that have position-independent arguments. Table 58 presents the parameters for this method. SyntaxEAIFormatMessage(msg [, formatParameters]) ReturnsA string of the formatParameters argument values in the positions specified by the positional arguments included in the msg parameter. UsageYou can use this function to generate messages from strings that are translated and whose positions have changed as a result of the translation. Example |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV |