![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: how to use perl API to obtain detailed transition information? Topic Summary: how to use perl API to obtain detailed transition information? Created On: 29-Nov-2006 15:29 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
How can I use the perl API to obtain detailed information (from-to state, date, comments, attrs changed) about all the transitions that a CR has actually gone through without using triggers?
I can query the transition_log field on a CR, but this is a textual field with all the information concatenated together so is not really useful other than for display purposes. If I use the apiTransitions class this just seems to identify all the transitions that a CR _can go through_ not what it has actually gone through. We don't want to use triggers firing in real-time - instead we are going to run a process once a day for data import/export purposes; I need to be able to identify the transitions individually because I want to do some processing based on the various transitions |
|
![]() |
|
![]() |
|
Coman,
I don't have a specific perl example of what you are looking for but you could look at the following 2 attributes that Change creates automatically for you when you define a state: xxx_id and xxx_time where xxx is your state name. For instance, if your lifecycle has the states cr_open and cr_closed then you will automatically get the attributes cr_open_id, cr_open_time, cr_closed_id, and cr_closed_time. The time field will indicate when the CR transitioned to that state and the ID field will tell you which user id was responsible for that transition. If the CR has not entered a state yet, these attributes will be set to "void". I haven't used these attributes for anything so I don't know their characteristics when you loop back to prior states. I'd suggest you try a few scenarios to see if it will work for you first. NOTE: We use version 4.5 of Synergy/Change and I know that 4.4 also supported this feature. I can't vouch for any other versions. Good luck! Rich |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.