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: CS API usage in a CM trigger
Topic Summary:
Created On: 23-Jun-2004 19:35
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 James McCaskey, on Friday, March 11, 2005 5:04 PM

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
 23-Jun-2004 19:35
User is offline View Users Profile Print this message


James McCaskey

Posts: 3
Joined: 7-Nov-2003

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