Tuesday, August 5, 2008

About Runtime Events

What is it? Siebel allows you to detect events on the Application, Applet or BusComp Objects. You can take an action or multiple actions on these events. For instance you can set profile attributes, or you can call a Business service or a workflow. When do you use it? Say when the Effective Start Date is set on the Service Agreement, On the pre write record of Business Component, You want to call a Business Service to validate a lot of different conditions... That is when you will define an action set to SetProfileAttribute for Account Id and then call the Business Service or a workflow. Siebel Version Runtime events is available in Siebel v7.5 onwards. The instructions/example in this blog is from siebel 7.8. to access siebel runtime events screen login to Siebel Client. Go to Sitemap --> Runtime Events Administration. Some common RuntimeEvents: Listed below are some commonly used events for each object Applet: InvokeMethod PreInvokeMethod DisplayApplet BusComp: PreSetFieldValue SetFieldValue PreWriteRecord WriteRecord Query PreQuery NewRecord PreNewRecord Application Login Logout Timeout ViewActivated Some Sample Actionsets: To create an actionset 1.Login to siebel client 2.go to Sitemap --> Administration - Runtime Events --> Action Sets 3.Click New, and enter Name = Test Actionset Start Date = Yesterday's date Active = Y Enable Export = Y 4. Create a New Record in the child applet, and enter Name = SetProfileAttr1 Action Type = Attribute Set Sequence = 1 Profile Attribute = SetOperator = Set Value = 5. Create another New Record, and enter Name = Effective Date Validation Action Type = BusService Sequence = 3 Business Service Name = Workflow Process Manager Business Service Method = RunProcess Business Service Context = "ProcessName", "Contract Validation Workflow" Example of Events Now lets say you want to call this actionset Before Write record event of "Service Agreement". Here is what you will do to achieve this: Go to Events View and create a New Record: Sequence = 1 Object = BusComp Object Name = Service Agreement Event = PreWriteRecord Action Set Name = Contract Start Date Validation Actionset How to know what events are called when your application is running? Now In Order to know what is the Sequence of Events which is called when you do a certain operation in Siebel, do the following: To know the sequence of events that are fired, enable the personalization log in your thick client by setting the following 2 parameters in your cfg file: EnablePersonalization = TRUE PersonalizationLog = C:\Personal.log

No comments: