Siebel Adapter 6.0 SP3 | webMethods Siebel Adapter Documentation | webMethods Siebel Adapter Installation and User’s Documentation | Overview of the Adapter | Siebel-to-webMethods Communication | Siebel Visual Basic Scripts
 
Siebel Visual Basic Scripts
 
Siebel VB Script Run-Time Processing
The Siebel Event Model enables you to attach procedures to Siebel objects, such as business components and applets. You can specify that when a particular event is triggered, such as when users modify a business component record or click an applet control, the attached procedure runs.
You write procedures using Siebel's scripting language, Siebel Visual Basic (VB). Because Siebel VB is compatible with Microsoft's Visual Basic, you can write procedures that can interact with COM objects. The COM interface, enables Siebel VB to call adapter services and pass values to them. For example, you might create a Siebel procedure that notifies an Integration Server client when a new sales contact is created.
If you want a GUI event to call adapter services, you can attach a procedure to a control in a Siebel application GUI applet. For example, you could attach a Siebel VB procedure to a Siebel application applet's OK button. When users click the OK button, the Siebel VB procedure then invokes an adapter service.
If you want some kind of business component processing to trigger an event that calls adapter services, you might place the script within one of the predefined procedures that are attached to business components. For example, you might place a script in the Contact business component's WriteRecord event.
For information about writing a Siebel VB script, see Siebel Visual Basic Scripts.