Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using the perl client to access Entry Point information

Hi, when I look at the web interface for Build Forge (7.1.2.0-0-0340) I can click on Projects->Adaptor Links and then see the current Entry Point. Does anyone know how to get the Entry Point information using the perl client?

I looked through the Adaptor and AdaptorLink sections of the documentation but I didn't see any methods for entry points. I was expecting to see something like
$adaptorlink->getEntryPoint()
bud didn't find anything like it.

Thanks,
Dale

0 votes


Accepted answer

Permanent link
Hi, when I look at the web interface for Build Forge (7.1.2.0-0-0340) I can click on Projects->Adaptor Links and then see the current Entry Point. Does anyone know how to get the Entry Point information using the perl client?

I looked through the Adaptor and AdaptorLink sections of the documentation but I didn't see any methods for entry points. I was expecting to see something like
$adaptorlink->getEntryPoint()
bud didn't find anything like it.

Thanks,
Dale


Hi Dale,

Unfortunately, I don't see a method to get the entry point on the Perl class. There is a method called getName on the Java client. I've opened item Perl BuildForge::Services::DBO::AdaptorLink needs method to get name (aka entry point) to have a getName method added. As a shorter term workaround, you could do something like the following:


my $adaptorLink = BuildForge::Services::DBO::AdaptorLink->findByUuid($conn, $adaptorLinkUuid);
die('Could not find adaptor link ' . $adaptorLink) unless defined($adaptorLink);

my $entryPoint = $adaptorLink->{'name'};
print "**** " . $entryPoint . " ****\n";


Brent Ulbricht
RTC Build Lead
Dale Hille selected this answer as the correct answer

1 vote


One other answer

Permanent link
Hi, when I look at the web interface for Build Forge (7.1.2.0-0-0340) I can click on Projects->Adaptor Links and then see the current Entry Point. Does anyone know how to get the Entry Point information using the perl client?

I looked through the Adaptor and AdaptorLink sections of the documentation but I didn't see any methods for entry points. I was expecting to see something like
$adaptorlink->getEntryPoint()
bud didn't find anything like it.

Thanks,
Dale


Hi Dale,

Unfortunately, I don't see a method to get the entry point on the Perl class. There is a method called getName on the Java client. I've opened item Perl BuildForge::Services::DBO::AdaptorLink needs method to get name (aka entry point) to have a getName method added. As a shorter term workaround, you could do something like the following:


my $adaptorLink = BuildForge::Services::DBO::AdaptorLink->findByUuid($conn, $adaptorLinkUuid);
die('Could not find adaptor link ' . $adaptorLink) unless defined($adaptorLink);

my $entryPoint = $adaptorLink->{'name'};
print "**** " . $entryPoint . " ****\n";


Brent Ulbricht
RTC Build Lead

Thanks Brent, the workaround worked great!

-Dale

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 22 '11, 4:45 p.m.

Question was seen: 3,555 times

Last updated: Jul 22 '11, 4:45 p.m.

Confirmation Cancel Confirm