Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 29-Nov-2006 15:29
User is offline View Users Profile Print this message


Coman Wakefield

Posts: 18
Joined: 1-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 19-Mar-2007 16:15
User is offline View Users Profile Print this message


Richard Sheehan

Posts: 3
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.