Wednesday, 28 December 2011

How to create a custom log file in lombardi teamworks7?

We use custom logger to know the workflow information and debugging purpose.  
In order to create our own custom log file we have to add code to log4j.xml. This xml file will there at C:\Teamworks7\process-center\resources\log4j.xml.

In logger we have 7 levels those are DEBUG, ERROR, WARN, INFO, FATAL, ALL, OFF. In this level default is the DEBUG level and if you want to turn off the logging frame work OFF have to use. ALL is the lowest possible rank to turn on all logging.

In log4j.xml we have two tags
                       1. appender
                        2.category
Category will the level of output suppose if you mention DEBUG level in category you will see all the all logging level output from DEBUG to FATAL. Suppose if you mention WARN then you will see all the logging level output from WARN to FATAL.


In custom log we have to write our own appender and category where we have to give our own logger file.

 


Code for NameValuePair assigning two separate varible

Here experienceSkillSet is the resultSet and experience, skillSet is the output variable

//tw.local.experienceSkillSet[0].name='Java/J2EE'
//tw.local.experienceSkillSet[0].value='one'

/*tw.local.experienc = new tw.object.NameValuePair()
tw.local.skillSet = new tw.object.NameValuePair()*/
//log.error("length: "+tw.local.experienceSkillSet.listLength);

tw.local.skillSet =  new tw.object.listOf.NameValuePair();
tw.local.experience =  new tw.object.listOf.NameValuePair();
var k =0
var j=0;

for(var i=0; i<tw.local.experienceSkillSet.listLength;i++)
{

    if(tw.local.experienceSkillSet[i].name!='')
    {
    log.error("length in side of if condition: "+tw.local.experienceSkillSet.listLength);
      tw.local.experience[k] =  new tw.object.NameValuePair();
            tw.local.experience[k].name =tw.local.experienceSkillSet[i].name
     tw.local.experience[k].value=tw.local.experienceSkillSet[i].name

       
   k++;

    }
   

     if(tw.local.experienceSkillSet[i].value!='')
    {
      tw.local.skillSet[j] =  new tw.object.NameValuePair();
      tw.local.skillSet[j].name= tw.local.experienceSkillSet[i].value
        tw.local.skillSet[j].value = tw.local.experienceSkillSet[i].value
     
  j++;
  }
 
   }
  

How to create sample sample process in Lombardi teamworks7


Create a sample new process in Lombardi Teamworks:
Login into the Teamworks Authoring Environment click on the Create new Process App which is there on the right side of the window then pop up window will be open in that pop up we have to enter Process App Name, Acronym and Description in the text field  click Create buttonàClick Process App  in that page left side name of the create process and the right side open in Designer option click Open in Designer--> on the Processes option click on the + which is there on the right side there we have to click Business Process Definition new pop up with Name text field and finish, cancel button will be open after entering the name and click finish button

What is the use of coach service in teamworks7?


Coach:
1.     Validation
2.     Hide /enable
3.     Alignment issues
If an acronym is not unique, import completes with a warning, but attempts to install snapshots of the process application on test and productions servers will fail with an error

Ajax Services in Lombardi teamwork7


If we want to data to be load dynamically then we go for Ajax service.
How to create an Ajax Services in teamworks7?
Click on user Interface then click on Ajax Services then there create variable input type is inputVar and output type then then in implementation part write the code with create an object then Then add a human service(coach) then there in presentation in Dynamic data click on Ajax service and select the attached Ajax services
What are the bugs in Ajax services?
In Ajax services Input type should be inputVar otherwise it will give an error like undefined.
To debugging we have to write log file.
How to retrieve data from the database by using Ajax service?
To add SQL Execute statement where we can create variable of type sql(any) then In data mapping
We have to give data source name, return type,sql(String) and result and in ServerScript there we have to give binding and write the query about data retrieving .

how to create groups in teamworks7


Login into Process Admin console then click Server Admin in the left side then below click USER MANAGEMENT then Click Group Management then New page User Management > Group Management will open then Click on the new Group--> Create Group popup will ask Name and Description text field after filling textboxes then click save button it will create new group. If you want to add user to this group
Enter the group name into the Select group to modify and hit enter then the group will appear into the new Group text field then double click on the group then on the right add member option will come click on that option then one popup with Add User and Groups where you can add the existing user to this group.

To create Teamworks Users


Login into Process Admin console then click Server Admin in the left side then below click USER MANAGEMENT then click User Management then there User Management > Maintain User Settings will be open there is option Internal Teamworks User Details then there we have to give user details and click Add button below like we can create Teamworks Users In bpm. To verify created user we have a option called retrive in that if you give username that will be reflected in Internal Teamworks Users below box.