Planning an Upgrade to Siebel 7 > Planning an Upgrade > Assessing Interface Migration Tasks >

Migrating Scripts


Scripts in Siebel 7 are classified as either browser scripts or server scripts. In general, server scripts are oriented towards data access and manipulation of business components, and browser scripts are oriented towards UI interaction. Scripts are migrated as either browser script, server script, or as a combination of the two. This is significantly different from prior versions.

You might need to modify scripts that reference event handlers or methods that are obsolete in the new version.

Understanding Browser and Server Scripts

Server Scripts are designed to enhance object-interactivity and integration with legacy applications as well as other services. Written in either Siebel VB (for Windows only) or Siebel eScript (for all supported Siebel Server operating systems), server scripts run on the Siebel Server. Server scripts are executed in the context of the Siebel Object Manager. Tasks performed by server scripts include the following examples:

Browser scripts are designed to enhance user interactivity and desktop integration. Written in JavaScript, browser scripts run on the client's Web browser. Browser scripts are executed in the browser at run time. Tasks performed by browser scripts include the following examples:

Browser scripts are written in JavaScript. Therefore, if you have written code in Siebel 6.X using Siebel VB or Siebel eScript, then you must rewrite it in JavaScript.

Migration Decision: Browser or Server Script?

If you are migrating from Siebel 5.x or 6.x, you must review the characteristics of each script to determine whether to migrate it as a browser script or a server script. Scripts that manipulate the user interface (UI) are typically migrated as browser scripts. Scripts that interact with the server are typically migrated as server scripts.

Table 6 describes script migration scenarios.

Table 6. Script Migration
If a script contains...
It migrates as a...
Combination of code that interacts with the UI and the server.
Server script (by default)
Code that interacts with the server only
Server script
Code that interacts with the UI only
Browser script of the corresponding object
Desktop interaction
Browser script

Carefully categorize scripts that access operating system functions as either browser scripts or server scripts. Re-evaluate references to OS-specific behavior or location to make sure they are interacting with the intended environment (the client computer or the Siebel Server).

The most common script migration scenario is for a script containing a combination of code that interacts with the UI and code that interacts with the server. Because you cannot pull a random block out of a script to place it on the browser, analyze whether part of a UI-interactive script needs to be moved to a browser script, and consider the sequence of execution—browser scripts are executed before server scripts.

A script containing code that only interacts with the server requires no development effort, but there are a few things that you should consider:

A script containing code that only interacts with the UI is executed at the client machine before the request is submitted to the server.

A script that interacts with the desktop could be migrated as a server script if the logic is executed on the server away from the user's UI.

Determining Which Scripts to Migrate

To generate a list of repository differences between the standard Siebel 7 repository and your customized Siebel 5.x or 6.x repository, use the repository merge tool.

To use the repository merge tool for this purpose, specify only the Prior Customized Repository and the New Standard Repository fields, instead of specifying four repositories to perform a merge. (See the Upgrade Guide for the operating system you are using for instructions about how to perform a repository merge.)

Review the list of repository differences to determine which scripts to migrate.

Scripting Best Practices

The following scripting best practices can increase Siebel 7 performance and scalability, reduce deployment risks and costs, and help you maximize the return on your investment in Siebel 7 applications.


 Planning an Upgrade to Siebel 7 
 Published: 18 June 2003