[closed] Modify the FlowTarget for a Workspace
Hi, I want to create a new Workspace Repository which flow with only one component.
I tried to use the following code.
IWorkspace iWorkspace = null;try {IFlowTable iFlowTable = iWorkspaceConnection.getFlowTable().getWorkingCopy();IFlowEntry iFlowEntry = iFlowTable.getDefaultDeliverFlow();iFlowTable.setComponentScopes(iFlowEntry.getFlowNode(),iComponentHandles);iWorkspace = iWorkspaceConnection.getResolvedWorkspace();} catch (Exception e) {System.out.println(e.getMessage());}
The created workspace still contain all the components instead of what I assigned by the following code.
iFlowTable.setComponentScopes(iFlowEntry.getFlowNode(),
iComponentHandles);
where iComponentHandles only have one componenthandle.
Thanks!
The question has been closed for the following reason: "Duplicate Question" by rschoon Oct 22 '14, 4:31 a.m.