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

Search for workspace which accepts changes from a specific stream

 Hi, 

In a client application I'am trying find all workspaces which accepts from a specific stream. 
I have tried this code but it just finds all workspaces in the repository, and not only the ones which accepts from aStream.
Is there a problem with the search criteria  setFlowFilter, or am I just using it the wrong way ?

Any help would be appreciated :-)

IWorkspaceSearchCriteria wsSearchCriteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
wsSearchCriteria.setKind(IWorkspaceSearchCriteria.WORKSPACES);
IWorkspaceHandle aStream  = getStream();
wsSearchCriteria.setFlowFilter(aStream , FlowFlags.ACCEPT);
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repository);
List<IWorkspaceHandle> workspaceHandles = wm.findWorkspaces(
wsSearchCriteria, Integer.MAX_VALUE, null);


0 votes

Comments

Hello Martin,

could you open a work item so we can investigate further?  It is possible this type of filtering is not working as expected.

@sdimitro Did Martin open a work item? Is there a resolution that can be shared here to answer the question?

Hi Millard,

I am not aware of a new workitem opened by Martin related to this, no resolution to share.  Martin, if you have opened a workitem, please provide a link back to it here.

Sonia


Be the first one to answer this question!

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
× 10,935
× 411
× 233

Question asked: Apr 19 '13, 2:14 a.m.

Question was seen: 4,327 times

Last updated: May 21 '13, 9:48 a.m.

Confirmation Cancel Confirm