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: Email on Modify Attribute...
Topic Summary: Getting the original values in post-trigger
Created On: 26-Mar-2007 08:33
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.
 26-Mar-2007 08:33
User is offline View Users Profile Print this message


Itzik Ashkenazi

Posts: 5
Joined: 28-Aug-2006

Hello all, I have a slightly different problem with email notifications using the Synergy/Change CSAPI (i am already able to send them at least I want to send notifications to some people on a CR attribute modification, but i also want to send them a list of all the modified attributes (from and to states). This leads to my problem - the general modification trigger is a post-trigger and i can only get the already modified attributes, and not the original values. Can anyone know of a way to get the original values using the CSAPI? I tried all sources of documentation i can think of to no avail. Thanks in advance.
Report this to a Moderator Report this to a Moderator
 26-Mar-2007 16:37
User is offline View Users Profile Print this message


Charles Murphy

Posts: 5
Joined: 31-Jan-2005

We ran into a similar problem.  The best we've come up with so far is to parse the transition log, starting from the end, to find the previous value.  Of course this only works with attributes where the original value is logged in the first place.  (Not the case for text attributes or with the [state name]_id and [state_name]_time attributes.)  Also, if the transition log is greater than 32000 lines, the CSAPI can't seem to handle it.  In those cases we had to go through a CM session to get the transition log text.

I'd be interested to know if someone else has found a better solution.

-Julie Lee
Report this to a Moderator Report this to a Moderator
 26-Mar-2007 21:12
User is offline View Users Profile Print this message


Itzik Ashkenazi

Posts: 5
Joined: 28-Aug-2006

There is always the possibility to use pre-triggers to save the attributes in a DB or a file, using the username and CR number as an ID and then read them in the post-trigger, but that has some limitations:

- Pre-triggers are available only on transitions. Maybe someone knows how to put them on pre-state modifications.
- We should assign all of them manually.
- If we use normal pre-trigger, it will slow the transitions if the data is too much.
- If we use an asynchronous pre-trigger, it may finish after the running of the post-trigger (also if the data is too much).

But overall it is possible. I wanted to know if there is a better way
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.