Stream Creation
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.
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
I've find out how to create new stream. I've retrieved my IProjectArea using
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.
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.
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:
"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.