Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Business Processes and Rules: Siebel Enterprise Application Integration > Data Mapping Using Scripts > Siebel Message Objects and Methods > CSSEAIPrimaryIntCompOutThis object represents the output primary integration component. You can use the object's methods to create output integration components and records and to copy input data records to output data records. This object provides CopyFieldValue, CreateIntComp, NewRecord, SetCopySource, and SetFieldValue methods. CopyFieldValue() MethodThis method sets the value of a field in the active record to the value of a field in the current source record. Table 25 presents the parameters for this method. SyntaxCopyFieldValue(targetName, sourceName [, defaultIfNull [, defaultIfEmpty]]) ReturnsUsageUse this method to copy a field from an input integration component to the output primary integration component. You could achieve the same results by calling the GetFieldValue method on the input component and the SetFieldValue on the output component; however, using CopyFieldValue is easier. You must call the SetCopySource method first to specify the source integration component. CopyFieldValue uses the active records of the input and output components of the active integration component. If the integration component is not set with the SetCopySource method first, a call to the CopyFieldValue method raises an error. An error also occurs if either input or output component does not have an active record. If you set the copy source using the following statement: outIntComp.SetCopySource (inIntComp); the following two statements are equivalent: outIntComp.SetFieldValue("Fld-A", inIntComp.GetFieldValue("X")); outIntComp.CopyFieldValue("Fld-A", "X"); Using the second convention is convenient if you are copying many fields between the same components. CreateIntComp() MethodThis method creates a new integration component. Table 26 presents the parameters for this method. SyntaxCreateIntComp(name [, createNow]) ReturnsCSSEAIIntCompOut. Output Integration Component UsageUse this method to create a new integration component, open it for writing, and add it to the active record of the integration component. NOTE: This method raises an error if you call it without an active integration component record. Use the NewRecord method to create a new record and set the active record. NewRecord() MethodThis method creates a new record in a primary integration component. SyntaxReturnsUsageThis method adds a new primary integration component record and makes it the active record. SetCopySource() MethodThis method establishes the integration component from which a field value will be copied. Table 27 presents the parameter for this method. Syntax
ReturnsUsageCall this method before a call to the CopyFieldValue method. SetFieldValue() MethodThis method sets the value of the named field in the active integration component record. Table 28 presents the parameters for this method. Syntax
ReturnsUsageBoth the name and value arguments should be strings. The field is not set if the value is This method raises an error if called while there is no active record. NOTE: Siebel eScript automatically converts most types to strings as necessary. |
![]() |
![]() ![]() |
Business Processes and Rules: Siebel Enterprise Application Integration | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |