![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: Pre-condition triggers Topic Summary: and dynamic html Created On: 4-Feb-2005 15:46 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic SYNERGY
» SYNERGY/Change
»
Pre-condition triggers
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.