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: Needed a Transition Trigger script
Topic Summary: Needed a Transition Trigger script
Created On: 10-Apr-2007 09:24
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.
 10-Apr-2007 09:24
User is offline View Users Profile Print this message


Marcel Olij

Posts: 1
Joined: 23-Jan-2004

I have two states "A" and "B". there is a transition dialog with a attribute "Flow_Persentage". How can i set the attribute "Flow_Percentage" on the transition dialog with a new value in the post transition trigger script for the transition from "A" to "B"?. Bart Willemse
Report this to a Moderator Report this to a Moderator
 10-Apr-2007 13:24
User is offline View Users Profile Print this message


Ronen Ben-Chamo

Posts: 84
Joined: 1-Dec-2005

You can create a script and define it at your proccess.xml post trigget at spesific transition you wish to do
see example below

my $csapi_Internal = new ChangeSynergy::csapi();
 my $trigger = new ChangeSynergy::TriggerParser($ARGV[-1]);
 #Get the problem number from the trigger.
 my $problem_number = $trigger->get_object_id();

$csapi_Internal->setUpConnection("http", $InternalServer, $InternalPort );
  #print "======== Login to the ChangeSynegy server. (user, password, role, database)\n";
  $aUserInternal= $csapi_Internal->Login($User, $Password, "User", $InternalDB);

my $ModifyCR = $csapi_Modify_CR->AttributeModifyCRData($aUser_Modify_CR, $problem_number);
 my $Currentcrstatus = $ModifyCR->getDataObjectByName("crstatus")->getValue();

      print "################# Try to Active Modify CR func...\n";

      $tmpstr = $csapi_Modify_CR->ModifyCR($aUserInternal, $ModifyCR);


Ronen



-------------------------
Ronen Ben-Chamo
Configuration Managment
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 2 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 2 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.