When we talk about Siebel, I think Workflows are the most common term that we come across after Object Manager. We can achive really complex functionality through worklfows but what it means is that debugging them is equally complex. We generally test workflows through Simulation but if we were debug workflows in real time it can be quite painful and time consuming.
A simple method to debug workflow is to increase the log level for Workflow Process Manager (WPM) component. But if somebody has ever tried that he can vouch that it can be quite a headache to go through that log (believe me it is a lot and it can go up in MB's even if the workflow is of moderate complexity). And what's more is that most of the information that is contained in that log is useless and not realted to workflow functionality.
So here in this article I am going to present a pretty simple technique which can help you to get just the right amount of information that you need to debug a workflow.
Instead of increasing the log level of complete WPM component if you just increase the log level of just selective sub-components that should do the trick. I will list down the Sub-Components that you need to increase the log level to get just the appropirate information that you need.
Just increase the log level of the above said components from 1 to 4 and you are done !!!!!
To get logs from dedicated client you need set the Environmental Variable on your system. To understand the process of doing that Please go through my Old Post where I have explained about siebel logs.
Hope this post has helped you.
If the answer is "YES"!! Please leave your comments and visit again.
Read more!
Thursday, September 27, 2007
Siebel CRM - Workflow Debugging through Logs.
Posted by Neel 2 comments
Labels: Siebel Logs, Workflows
Wednesday, September 26, 2007
Siebel Logs - How Useful are they ?
If you have worked on Siebel CRM I am sure that you have heard the term LOGS lot of times. They are one of the most important and useful things if you are a Siebel Developer. But still most of us actually know how to use them to our advantage or to reduce our development time. Here in this Article I will try to explain some tips and tricks to get the logs and debug our code. Now we all know that we have two types of Siebel Application Clients.
- Dedicated Client
- Web Client
In this article I am going to discuss ways which can help us get logs from dedicated clients and speed up our debugging and development time.
Dedicated Client : There are essentialy two ways to get logs from dedicated client
- Spool
- Environmental Variable
Spool : it is a very basic and known technique to get the spool of all the SQL Queries that are fired in the database level and we all come across it during our initial Siebel development days. We can enable the spool for Siebel Client as well as Siebel Tools. The steps to enable spool for both the Siebl tools and client there is common process which is as following
- Right click the siebel tools or Siebel Client Shortcut
- Go to end of String which is in Target Text Field
- Enter the Following string at the end: /s "c:\spool.txt"
/s switch here stands for Spool. Various other switches that can be used are as following
- /u : username
- /p : password
- /d : database
With the following string you can automate login to your local or sample database depeding on the value you give in the switch. I am providing you examples of both
/u sadmin /p sadmin /d sample : String to login to Sample database with Sadmin user id
/u user /p pwd /d local : String to login to Local database with "user" user id.
Environmental Variable : This is more powerful and less know method of generating logs for dedicated client. Siebel has provided couple of Environmental Variables which are as following :
- SIEBEL_LOG_EVENTS
- SIEBEL_LOG_DIR
SIEBEL_LOG_EVENTS : This environmental variable can have two types of values.
Numeric or text. The numeric value is the log level which can be between 1-4. 1 being the lowest and 4 being the highest. The Text value can be ALL which means Log Level of 4.
SIEBEL_LOG_DIR : This value of this variable is path where you want to create the logs. Makes sure that the path you mention is valid otherwise the logs will be created in the temp directory.
Examples of both the environmental variables are as following
SIEBEL_LOG_EVENTS : ALL
SIEBEL_LOG_DIR : C:\siebel_logs
The process to create these enviornmental variables is as following
- Right click on the My Computer Icon
- Select Properties from context menu
- Go to ==> Advanced Tab
- Click ==> Environmental Variables
- In User Environmental Variables Tab click New
- Enter SIEBEL_LOG_EVENTS in Variable Name field
- Enter ALL in Variable Value Field
- Click New again and Enter the following details
- Variable Name : SIEBEL_LOG_DIR ; Variable Value : "your siebel log path"
Remember that Variable Names are case Sensitive. After you have created the variables when you start you dedicated client you will notice that in the path that you have given a file named siebel.log is created for Dedicated Client and file named siebel_dev is created for Siebel Tools.
If you don't provide the SIEBEL_LOG_DIR environmental variable the logs are created by default in Temp Directory.
Hope this posts helps you.
If the answer is yes. Please post your comments and visit again.
Posted by Neel 6 comments
Labels: Siebel Logs