It's all about the answers!

Ask a question

IDevelopmentLineHandle and IdevelopmentLine


m sawires (1463268) | asked Aug 23 '09, 4:47 p.m.
Hello,
Sorry for this newbie question but I don't quite understand the usage of handle in RTC.
I can get all the developmentLineHandle by using:
IDevelopmentLineHandle[] developmentLinesArray = projectArea.getDevelopmentLines();

However, how can I get the corresponding IDevelopmentLine object. Handle carry states and so on but how should I use them?

The same applies to ITeamAreaHandle and ItemArea using
projectArea.getTeamAreas();

Thanks for your time.

2 answers



permanent link
Jared Burns (4.5k29) | answered Aug 24 '09, 8:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Sun, 23 Aug 2009 20:52:57 +0000, marly wrote:

Hello,
Sorry for this newbie question but I don't quite understand the usage of
handle in RTC.
I can get all the developmentLineHandle by using:
IDevelopmentLineHandle[]
developmentLinesArray =
projectArea.getDevelopmentLines();
However, how can I get the corresponding IDevelopmentLine object. Handle
carry states and so on but how should I use them?

The same applies to ITeamAreaHandle and ItemArea using
projectArea.getTeamAreas();

Thanks for your time.

Item handles are just references to an item in the repository. They carry
the item's id and an optional state id, as you've observed, but none of
the item's other data.

To get the full item, you have to fetch it from the repository. On the
client, this is done using the IItemManager API. You can get to the item
manager via the team repository, by calling ITeamRepository#itemManager().

Hope that helps.

--
Jared Burns
Jazz Process Team

permanent link
m sawires (1463268) | answered Aug 24 '09, 4:34 p.m.
Perfect, that explained it. I got it now.

Your answer


Register or 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.