Posted by: ndandala | July 9, 2009

Siebel eScript – An Overview


The Siebel applications include two programming languages. Siebel VB is a Visual Basic-like programming environment that includes an editor, debugger, interpreter and compiler. Siebel VB runs on the Windows operating system only. Siebel eScript is, similarly, a JavaScript-like programming environment, which uses the same tools that Siebel VB uses. Siebel eScript runs on both Windows and UNIX operating systems. With these built-in languages, you can extend and configure your Siebel application beyond the capabilities provided by declarative object property definition. The languages are integrated with other Siebel tools, such as the Applet Designer, Siebel CTI, and Siebel SmartScript. Using this integration you can define object properties both with the designer and by attaching scripts.

 You should regard coding as a last resort.  

Siebel Tools provides many ways to configure your Siebel application without coding, and these methods should be exhausted before you attempt to write your own code, for three reasons: 

  • Using Siebel Tools is easier than writing code. More important, your code may not survive an upgrade.
  • Customizations created directly in Siebel Tools are upgraded automatically when you upgrade your Siebel application, but code is not touched, and it may need to be reviewed following an upgrade.
  • Finally, declarative configuration through Siebel Tools results in better performance than implementing the same functionality through code.

Siebel eScript Language

 Siebel eScript is a scripting or programming language that application developers use to write simple scripts to extend Siebel applications. JavaScript, a popular scripting language used primarily on Web sites, is its core language.

 Siebel eScript is ECMAScript compliant. ECMAScript is the standard implementation of JavaScript as defined by the ECMA-262 standard. Beginning with Siebel Business Applications version 7.8, the script engine supports ECMAScript Edition 4.

You can opt to use the updated functionality of this engine, including the Siebel ScriptAssist tool, or you can opt to leave this updated functionality inactive. 

Components of the Siebel Programming Environment 

  • Server Script: 

*     Siebel VB language 

A programming language that is syntactically and semantically compatible with Microsoft Visual Basic™. Because the language uses most of the same commands and standards as Microsoft Visual Basic, you can extend your Siebel application and reduce training costs. 

*     Siebel eScript language 

A programming language that is syntactically and semantically compatible with Netscape JavaScript™. In parallel with Siebel VB, the language uses most of the same commands and standards as JavaScript, giving you the same advantages in an alternative language. Moreover, you can use Siebel eScript on all Siebel-supported operating systems. Siebel VB is supported on Windows only. 

  • Browser Script 

A type of script (introduced in Siebel 7) that executes in and is interpreted by the Browser. Browser Scripts are written in JavaScript and interact with the Document Object Model (DOM) as well as with the Siebel Object Model available in the Browser through the Browser Interaction Manager. A developer can script the behavior of Siebel events as well as the Browser events that are exposed through the DOM. Be aware that the DOMs for Internet Explorer and Netscape Navigator are different. Browser Script may only be used with applications which run in high interactivity mode, except when scripting Control events supported by the Browser Document Object Model.

  • Siebel Script Editor 

An integrated editor used to create, view, edit, and save custom program routines. The script editor has a code editing feature called Script Assist (introduced in version 7.8). Script Assist provides auto-complete, auto-indentation, method listing, and method signature capabilities to help minimize errors as you develop script. For more information about the Siebel Script Editor, including how to enable Script Assist, see Using Siebel Tools

  • Siebel Debugger 

This assists you in detecting errors contained within Siebel programming language routines. It does not assist in detecting errors outside of the context of custom program routines. The Siebel Debugger can be invoked automatically from Siebel applications when a runtime

error occurs if the Siebel application was invoked with the debug option, /H, on the command start-up line. The Debugger can also be invoked from the Debug toolbar and Debug menu. The Debugger is described in more detail in Using Siebel Tools

  • Compiler/Interpreter 

A nonvisual component of the Siebel programming languages that compiles and executes Siebel custom program routines. It is similar to Microsoft’s Visual Basic Language Interpreter. Siebel language routines are compiled into p-code and stored with the other object definitions in the SRF file. 

  • Object Interfaces 

A collection of selected objects that expose their data and functionality to custom routines. The interface provides access to Siebel business objects with defined methods, events, and associated data. The object interfaces are the subject of this book.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: