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

[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!

0 votes


The question has been closed for the following reason: "Duplicate Question" by rschoon Oct 22 '14, 4:31 a.m.


2 answers

Permanent link
Closed as duplicate. See https://jazz.net/forum/questions/166114/setting-flowtarget-while-creating-workspace

0 votes


Permanent link
I solved the problem finally.

I should add iWorkspaceConnection.setFlowTable(iFlowTable, monitor); in the end.

Thanks!

0 votes

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,930

Question asked: Oct 21 '14, 10:13 p.m.

Question was seen: 4,657 times

Last updated: Oct 22 '14, 4:51 a.m.

Confirmation Cancel Confirm