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: Pre-condition triggers
Topic Summary: and dynamic html
Created On: 4-Feb-2005 15:46
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.
Answer This question was answered by Vincent Gaudeul, on Friday, March 11, 2005 4:47 PM

Answer:
Hello Ludovic,

if you have implemented a PERL pre-transition trigger, then it is quite easy to display an error message in the pt_status area of your Web interface.

The following statement will make your trigger fail (the transition will therefore not be done), and the message will be displayed in the pt_status area :

die "CR#xxx cannot be transitioned", check first your VALID attribute on CR !";

See you.

Vincent
 4-Feb-2005 15:46
User is offline View Users Profile Print this message


Maria BELIN

Posts: 1
Joined: 24-Jan-2005

Hi Folks,

Did anybody is using pre-condition triggers and display trigger result in HTML dynamicaly ?

My perl trigger script is doing this :
   - If ChangeRequest attribute VALID=1 then transition CR to next-state.
   - If ChangeRequest attribute VALID=0 then do not transition CR to next-state.

Now, how Do I do the following ?
, I want the user to know about this condition and I want to show his the message
   "CR#xxx successuly transitioned to state xxxxxx"
 or 
   "CR#xxx cannot be transitioned", check first your VALID attribute on CR !"

Thanks,

Ludovic


Report this to a Moderator Report this to a Moderator
 28-Feb-2005 12:29
User is offline View Users Profile Print this message


Boris Baldassari

Posts: 3
Joined: 30-Apr-2004

hello;

don't know how to achieve this in change synergy. seems rather difficult, since displayed information is generated by the java classes themselves (and proprietary software do not allow you to study and change this..). you can try to track back the calls to get the templates used, and try to know what are the classes used.

i would have better sent an email to the user trying to pass the transition, with the messages in the mail:
"CR#xxx successuly transitioned to state xxxxxx" or "CR#xxx cannot be transitioned", check first your VALID attribute on CR !" ; with some information about the record (ID, synopsis, etc.) and the transition (time, from.. to ..).

ps: the Mail::Sender perl package is really well-featured for this sort of application in triggers.

--
Boris Baldassari
Report this to a Moderator Report this to a Moderator
 4-Mar-2005 06:40
User is offline View Users Profile Print this message


Vincent Gaudeul

Posts: 68
Joined: 10-Oct-2002

Answer Answer
Hello Ludovic,

if you have implemented a PERL pre-transition trigger, then it is quite easy to display an error message in the pt_status area of your Web interface.

The following statement will make your trigger fail (the transition will therefore not be done), and the message will be displayed in the pt_status area :

die "CR#xxx cannot be transitioned", check first your VALID attribute on CR !";

See you.

Vincent
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.