It's all about the answers!

Ask a question

Getting a list of ChangeSets for a given Stream


0
1
Steve Ashton (824) | asked Jul 14 '14, 1:00 p.m.
 I'm trying to get a list of ChangeSets for a given Stream: 

IChangeHistory ch = workspaceConnection.changeHistory(componentHandle);

I do get a history for one stream, but I am unable to change the flowtarget of the workspace to another stream in order to see the history of that stream.
Here is what I am trying to do to change the flowtarget:

IWorkspaceHandle streamA = getStreamOrWorkspace(streamName, wm, IWorkspaceSearchCriteria.STREAMS);
flowTable.unsetCurrentDeliverFlow();
flowTable.unsetCurrentAcceptFlow();
for (Object o : new ArrayList<Object>(flowTable.deliverTargets())) {
            IFlowEntry e = (IFlowEntry)o;
            IFlowNodeHandle flowNode = e.getFlowNode();
            flowTable.removeDeliverFlow(flowNode);
            flowTable.removeAcceptFlow(flowNode);
}
flowTable.addAcceptFlow(streamA, repo.getId(), repo.getRepositoryURI(), null, null);
flowTable.addDeliverFlow(streamA, repo.getId(), repo.getRepositoryURI(), null, null);


Is there a more correct way to change the flow target, and then get the changesets?  Or, is there a better way than changing the flow target?

Comments
Steve Ashton commented Jul 14 '14, 1:24 p.m.
Thanks. I must have made an earlier assumption about the WorkspaceConnection, and was only looking for workspaces in my query. Your suggestion worked.

One answer



permanent link
sam detweiler (12.5k6195201) | answered Jul 14 '14, 1:11 p.m.
Why change flow tables?  just get a workspaceconnection to the other stream and get its history.

workspace and stream are the same in this regard.

and u can do this from the commandline..

there was also a utility I wrote to dump all the changsets in a stream to find an access problem. I think it is in the tools stream (and on the N: drive).. ask Gaurav

Your answer


Register or to post your answer.