It's all about the answers!

Ask a question

Stream Creation


Michele Pegoraro (1.8k14119103) | asked May 09 '09, 11:34 a.m.
I'm trying to create a stream using PlainJazzAPI.
In the snippet I've find the method to use (createStream from IWorkspaceManager class) but I can't find out how retrieve a IProcessAreaHandle from my ITeamRepository object or from IWorkspaceManager object. There's a way to get a IProcessAreaHandle without create a new one??
Thanks for any answer.

2 answers



permanent link
Michele Pegoraro (1.8k14119103) | answered May 12 '09, 11:53 a.m.
I've find out how to create new stream. I've retrieved my IProjectArea using

IProcessItemService service= (IProcessItemService) repo.getClientLibrary(IProcessItemService.class);

List<IProjectArea> projectArea = service.findAllProjectAreas(service.ALL_PROPERTIES, monitor);


and then I use IProjectAreaHandle (obtain with IProjectArea.getProjectArea() method) instead of IProcessAreaHandle. I don't know why Javadoc uses the Process handle, but it makes more sense to use project handle because a stream is in the project Area and doesn't seem so related to the Process.
I hope this can help someone else.

permanent link
Geoffrey Clemm (30.1k33035) | answered May 12 '09, 12:04 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
A "process area" is an abstraction for either a "project area" or a
"team area". A stream can be owned by either a project area or a team
area, or in other words, in general it can be owned by a process area.

Cheers,
Geoff

mikyjpeg wrote:
I've find out how to create new stream. I've retrieved my IProjectArea
using

IProcessItemService service=
(IProcessItemService)
repo.getClientLibrary(IProcessItemService.class);
List<IProjectArea> projectArea =
service.findAllProjectAreas(service.ALL_PROPERTIES,
monitor);

and then I use IProjectAreaHandle (obtain with
IProjectArea.getProjectArea() method) instead of IProcessAreaHandle.
I don't know why Javadoc uses the Process handle, but it makes more
sense to use project handle because a stream is in the project Area
and doesn't seem so related to the Process.
I hope this can help someone else.

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.