You are on page 1of 12

Infosys Business Services In Siebel

Infosys

Business Services In Siebel


September, 2012

INFOSYS LIMITED

Bangalore

Document No. Ver. Rev. :

Authorized by: Signature/:

Date:

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

COPYRIGHT NOTICE

© 2012 Infosys Limited, Bangalore,India. All rights reserved. Infosys believes the
information in this document is accurate as of its publication date; such information is
subject to change without notice. Infosys acknowledges the proprietary rights of other
companies to the trademarks, product names and such other intellectual property rights
mentioned in this document. Except as expressly permitted, neither this document nor any
part of it may be reproduced, stored in a retrieval system, or transmitted in any form or by
any means, electronic, mechanical, printing, photocopying, recording or otherwise, without
the prior permission of Infosys Technologies Limited and/or any named intellectual property
rights holders under this document.

Infosys Limited
Hosur Road
Electronic City, 3rd Cross
Bangalore 560 100
India.
Telephone: (91) (80)28520 261-270
Fax: (91)(80) 8520 362
Website: http://www.infosys.com

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

Author(s): Sandeep Kumar

Date written (MM/DD/YY): 01 September 2012

Project Details:

Project(s) involved: JCICDG2B

S/W Environment: Siebel 8.0

Project Type: Maintenance, Support and Development.

Target readers: Siebel Developers

Key words: Echo, Universal Inbox

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

1. Introduction

This BOK explains about some frequently and built-in used Business Services and
its usages in Siebel. In Object Manager Business Services Objects could be used as
reusable components or reusable business logic. Business Services include both
user defined objects and built-in business services, which may be scripted but not
modified. We can configure stand-alone objects with both properties and scripts.
Business services may be used for generic code libraries that can be called from
any other scripts. The code attached to a menu item or a toolbar button may be
implemented as a business service.

2. Important points to be noted for Business Services: Basics of Business


Services:

 Reusable and globally accessible.

 Enables business logic to be executed repeatedly in multiple different contexts

 Can be invoked in a Siebel workflow process.

 Two types of Business Service:


 Repository Stored Business Services
o Siebel-developed business services: Written in C+ and cannot be
modified by the users.

o Custom business services developed by users: Written in Siebel VB or


e-Script and can be modified by user.

 Client Stored Business Services: It is almost same as Custom business service


and written in Siebel VB and e-script, the only difference is that it is created
using Administration – Business Service.

 One main point about the Client Stored Business Services is that , it cannot
be executed if there is already a Repository Stored Business Service exist of
the same name.

3. Something about Methods in Business Service:

 There could be more than one Operation associated with a Business Service and
these operations are called Method.
 Each method has a set of Input and Output arguments.

Pictorial presentation of Methods:

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

BS
String Manipulation
Argument
Input String/String Length/Number
Type
Length

Length/
Argument
IS/S Numbe
OutputString/String Name
r

Truncate

Stiring1 String2/
OutputString/String
/String String

Concatenate
Methods Output Arg
Input Arg

 Invoking method:
Assign values to Input Parameter.
Retrieve the values assigned to output parameter.

4. The following Business Services will be explained as part of this BOK.

i. Workflow Utilities
ii. Inbound E-mail Database Operations
iii. Universal Inbox
iv. EAI Siebel Adapter
v. SIS OM PMT Service
vi. XML Hierarchy Converter

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

5. Business Service: Workflow Utilities:

Important Methods:
a. Echo Method:
Echo method of Workflow Utilities is a very important method when we want
the value of an output argument same as input argument. In other words the
value of input and output arguments are the mirror images. Echo copies its
inputs to its outputs.
Output parameters of the Echo Method of workflow Utilities will be populated
by the value of currently modified record of the Business Component. If record
of Order Entry – Orders BC is being manipulated then the values of that record
will be stored in output parameter of the Echo method of Workflow Utilities.

Example of output Argument used with Echo Method to get a value:

Property Value
Property Name Echo Variable
Type Business Component
Business Component Name Order Entry – Orders
Business Component Field Order Number
In this example, as a result of running the workflow process, the Echo Variable
process property is populated with the value in the Order Number field of the active
Order Entry - Orders business component record.
b. Sleep Method:
Sleeps for the number of seconds specified by the value.
6. Business Service: Inbound E-mail Database Operations

This BS is an out of box BS which can do everything a normal Siebel operation


Step can do and even much more than that also it performs DB(Data Base) level
actions.
Advantages:
1. More than one BC can be queried and these BCs could be of different BOs.
2. The BO instance is not loaded in the memory throughout the workflow.
3. In Siebel Operation workflow should be BO based but the same is not
necessary in “Inbound E-mail Database Operation”.
4. There is one hidden method “UpdateRecord” which could be used to update a
record.

Important Methods:

a. FindRecord:

1. This method is used to find a record.


2. It obeys the “CaseInsensitive” parameter in CFG file if mentioned.
3. By default the CFG file is configured to perform case-sensitive search.

Input Arguments:

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

Property Definition
BusComp
BC Name from which to find a record.

BusObj Name of BO.

ErrorMessage During execution if any error occurred.

FatalErrCode Error Code of fatal error.

ID Record’s Id if found.

QueryFields Fields to query on.

ValueFields Fields from which to get values.

b. DeleteRecord:

It deletes a record.
Input Arguments:

Property Definition
BusComp
BC Name from which to delete a record.

BusObj Name of BO.

ErrorMessage During execution if any error occurred.

FatalErrCode Error code of fatal error.

ID Record’s Id if found.

c. InsertRecord:

It inserts a record.

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

Input Arguments:
Property Definition
BusComp
Name of BC, field values are passed as input
argument followed by field name.

BusObj Name of BO

ErrorMessage During execution if any error occurred

FatalErrCode Error code of any Fatal error during


execution.

ID Newly inserted record’s id.

7. Business Service: Universal Inbox:

Definition:

Universal Inbox BS is used to assign some works to a set of users. Each Inbox
item will have a single owner. Tasks could be transferred and reassigned using
Universal Inbox BS. Tasks are stored and accessed from the owner's inbox. The
importance of Inbox is to collect tasks for a user so that the user will not have to
navigate many locations for assigned tasks.

Name/Value Inbox Item This record appears in the


Parameters
Submitted Item Views.

These records
InboxItemOwner InboxItemOwner InboxItemOwner appear in the Inbox
Items and Completed
Items Views.

 Inbox item and Inbox item owner.


 The Inbox item. This is the record that appears in the Submitted Items
views.
 The Inbox item owner. This is the record that appears in Inbox Items and
Completed Items views. Owner information contained in this record. Typically there are one
or more Inbox item owner records associated with one Inbox item record.

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

Important Methods:

Method Name Descriptio Method Arguments


n
CreateInbox Allows to Name:InboxItemInfo
create both
Inbox item Data Type:Hierarchy
and Inbox
item Type:Input
owners.Allo
ws the
Storage Type:Hierarchy
caller to
create
multiple
Inbox items
and
multiple
Inbox item
owners.
CreateInboxEx Supports to Name DateTy Type Storag
create both pe e Type
Inbox item
Comments String Input Propert
and Inbox
y
item owner.
Allows the InboxExiprationDura String Input Propert
caller to tion y
create only
single Inbox InboxName String Input Propert
item and y
single Inbox InboxPartyId String Input Propert
item owner. y
For
functionalit InboxTypeName String Input Propert
y of y
creating ObjectId String Input Propert
multiple y
Inbox item
owners, OwnerPartyId String Input Propert
please use y
CreateInbo InboxItemId String Outp Propert
x method. ut y
OwnerInfoId String Outp Propert
ut y
CreateInboxItem Supports to Name:InboxItemId
create
Inbox Data Type:String
items.
Allows to Type:Output
create

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

multiple Storage Type:Property


Inbox
items.
CreateInboxOwne Supports to Name:OwnerInfoOutput
r create
Inbox item Data Type:Hierarchy
owners for
the given Type:Output
Inbox item.
Storage Type:Hierarchy
DeactivateInboxIt Deactive all Name DateTy Type Storag
em the Inbox pe e Type
item
Comments String Input Propert
owners with
y
the given
Inbox item. InboxExiprationDura String Input Propert
tion y
Allows to
InboxName String Input Propert
update the
y
Inbox item
information InboxPartyId String Input Propert
when y
deactivating
InboxTypeName String Input Propert
.
y
ObjectId String Input Propert
y
InboxItemId String Outp Propert
ut y

8. Business Service: EAI Siebel Adapter:

EAI Siebel Adapter is a general-purpose integration business service that has the
following features:

1. Siebel business objects could be read from the Siebel Database into integration
objects.
2. An integration object instance whose data originates externally could be written
in a Siebel BO.
3. Multiple corresponding top-level parent business component records with data
from one XML file

Important Methods:

a. Insert Method:

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

EAI Siebel Adapter inserts the root component and synchronizes all the children if
matching root component is not found it generates an error. Insert method will
remove the child records created during the insertion of records in Parent BC. The
Insert method synchronizes the children, which deletes all the default children.

b. Upsert Method:

The Upsert method does not delete any records or any records of Child BC. If
existing children are found, these will be updated.
Two operations will be performed as part of Upsert Method Update and Insert. It will
update the record if it already there. If the record does not exist, it will be inserted.
There is a way to find out the execution of Upsert Method in EAI Siebel Adapter, in
other words users can determine that the Update/Insert is performed or not. With
the help of User Keys or Search spec a query runs in EAI Siebel Adapter to determine
if the parent or primary record is already present or not. If there is existence of
parent record already then it will update otherwise a new record will be inserted.
9. Business Service: SIS OM PMT Service:

There are many methods associated to “SIS OM PMT Services” and all these have a
specific task to do. E.g. Set Profile Attribute, Get Profile Attribute, Apply, Trim, Get
selected row count etc. Most frequently used methods are “Set Profile Attribute” and
“Get Profile Attribute”, these are very useful in workflows. The method "Set Profile
Attribute" has arguments:
1. Profile Attribute Name
2. Profile Attribute Value
This could be used same as we set and get profile attribute in Siebel server e-script.

Important Methods: Arguments:

Method Name Description Arguments


Set Profile Attribute Very useful to set a Name Data Type Storage
profile attribute in Type Type
workflows.
Profile String Input Property
Attribut
e Name
Profile String Input Property
Attribut
e Value
Get Profile Attribute Very useful to get a Name Data Type Storage
profile attribute in Type Type
workflows.
Profile String Input Property
Attribut
e Name
Profile String Output Property
Attribut

© 2012 Infosys Limited, India


Infosys Business Services In Siebel

e Value

10.Business Service: XML Hierarchy Converter

The XML Hierarchy Converter relies on simple rules for converting between an XML
hierarchy and an XML document. The important distinction between this service
and the XML Converter is a Property Set of type XMLHierarchy, which is always
presented as a child of Service Method Arguments and as a parent of the XML
document root element.

Important Methods:

Name Description

DocToHier For Internal Use Only: Convert an XML


document stored in the value member of
the input property set to a property set
hierarchy, returning the result in the
XML Property Set hierarchy

HierToDoc For Internal Use Only: Convert a XML


Property Set hierarchy to XML document
(result in the value member of the
output property set)

XMLDocToXMLHier Convert an XML document stored in the


value member of the input property set
to a property set hierarchy, returning the
result in the XML Property Set hierarchy

XMLHierToXMLDoc Convert a XML Property Set Hierarchy to


XML document (result in the value
member of the output property set)

Reference(s)

1. Siebel Bookshelf v8.0


2. http://siebel.ittoolbox.com/
3. http://siebelunleashed.com/
4. http://www.siebeloracle.com/

© 2012 Infosys Limited, India

You might also like