![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: CS API usage in a CM trigger Topic Summary: Created On: 23-Jun-2004 19:35 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hello, I know you can't issue ccm.exe commands within a CM Synergy trigger (ie a trigger fired from Trig_ui.def). However, I was wondering if the Perl API is a loop hole to this issue. I have the following code snippet: my $csapi = new ChangeSynergy::csapi(); #setup the connection $csapi->setUpConnection("http", $tl_server, 8600); #Create a user account my $aUser = $csapi->Login("ccm_root", $tl_password, "User", $tl_cm_url); # Build up the information on the CR to open print "Running SubmitCRData\n"; my $submitData = $csapi->SubmitCRData($aUser, "START_HERE2Building"); print "Done with SubmitCRData\n"; I execute this from withing a CM Synergy trigger and I get the following back from the server (I can see this info in the ccm_ui.log file for the change synergy user) 06/23 13:08:58 Connection failure: The response as a string is: 500 (Internal Server Error) read timeout I also do not see the last print in the log file. I can run this program outside of the trigger, so I am confident that it should work. However, I do not know how to get around this timeout. Any help would be appreciated. Thanks! -Jim | |
![]() |
|
Hello,
I know you can't issue ccm.exe commands within a CM Synergy trigger (ie a trigger fired from Trig_ui.def). However, I was wondering if the Perl API is a loop hole to this issue. I have the following code snippet: my $csapi = new ChangeSynergy::csapi(); #setup the connection $csapi->setUpConnection("http", $tl_server, 8600); #Create a user account my $aUser = $csapi->Login("ccm_root", $tl_password, "User", $tl_cm_url); # Build up the information on the CR to open print "Running SubmitCRData\n"; my $submitData = $csapi->SubmitCRData($aUser, "START_HERE2Building"); print "Done with SubmitCRData\n"; I execute this from withing a CM Synergy trigger and I get the following back from the server (I can see this info in the ccm_ui.log file for the change synergy user) 06/23 13:08:58 Connection failure: The response as a string is: 500 (Internal Server Error) read timeout I also do not see the last print in the log file. I can run this program outside of the trigger, so I am confident that it should work. However, I do not know how to get around this timeout. Any help would be appreciated. Thanks! -Jim |
|
![]() |
Telelogic SYNERGY
» SYNERGY/CM
»
CS API usage in a CM trigger
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.