Section Seven: Siebel Integration Scripting
Section Seven: Siebel Integration Scripting
In Siebel Tools:
• Create integration objects
o Siebel integration objects to represent Siebel data
o External integration objects to represent external data
• Create a business service to hold the data transformation code
• Write the data transformation eScript code
o Use Siebel data transformation functions to build maps that:
Transform incoming external data into the Siebel structure
Transform outgoing Siebel data into the external system's structure
In Siebel Tools:
1. Create a new business service
o Set the Project property
1. Set the Class property to CSSEAIDTEScriptService
2. Add a method named Execute to the business service
– Add the following arguments to the Execute method
#include "eaisiebel.js"
Transformation function name: Input Object: object type Output Object: object type
passed as MapName business set by the Input Type set by the Output Type
service argument business service argument business service argument
Business Service
Function Argument Object
Argument Description
Input Type Output Type Input Object Output Object
Siebel Siebel CSSEAIInt CSSEAIInt Maps to and from an integration
Message Message MsgIn MsgOut object format (such as XML)
Siebel XML CSSEAIInt XML Maps to external XML
Message Hierarchy MsgIn Hierarchy (no XML integration object)
XML Siebel XML CSSEAIInt Maps from external XML
Hierarchy Message Hierarchy MsgOut (no XML integration object)
GetIntComp()
Exists()
FirstRecord() Integration Component GetFieldValue() Integration
NextRecord() Instance Component
(CSSEAIIntCompIn) Fields
CreatePrimaryIntComp()
CreateIntComp()
NewRecord() Integration Component Integration
SetFieldValue()
Instance Component
(CSSEAIIntCompOut) Fields
XML Hierarchy
(Input Passed)
XPSGetRootElement() XPSGetTagName()
Tag Name
XPSGetTextValue()
XML Root Element Value
XPSGetAttribute()
Attribute
XPSFindChild()
XPSGetChild()
XPSGetChildCount()
XPSGetTagName()
Tag Name
XML Hierarchy
(Output Passed)
XPSCreateRootElement() XPSSetTagName()
Tag Name
XPSSetTextValue()
XML Root Element Value
XPSSetAttribute()
Attribute
XPSAddChild()
XPSSetTagName()
Tag Name
• Outbound:
o Reads an internal integration object instance (property set)
o Writes the data into an
interface integration object
instance (property set) Internal External
Integration Object Integration Object
• Inbound: IC IC
o Reads an interface integration IC IC IC IC IC
object instance (property set)
o Writes the data into a Siebel
integration object instance Business Service
(property set)
Business Service
• Types of errors
o Siebel errors (fatal)
Examples: Run-time eScript errors, business service invocation errors,
BusComp errors, errors in data transformation functions
o User errors (fatal)
Raised by calls to the EAIRaiseErrorCode function in custom maps
o Map status flags
Custom status information placed in the output property set using the
SetArgument method
• Exception handling functions
o EAIRaiseError (message, formatParameters)
o EAIRaiseErrorCode (errorSymbol, message)
o EAIFormatMessage (message, formatParameters)