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

IFlowNode object and handle

I'm trying to create a class that create some streams and then create flow between these streams. Now I get the new streams, I added the component and the correct owner and I have to add source and target flow.

I've retrieved IFlowTable from my stream using IWorkspaceConnector.getFlowTable() method and then I get my working copy to use for addAcceptFlow and addDeliverFlow methods. These method required an IFlowNodeHandle to identify the stream target (or source). How can I retrieve this class from my IWorkspace or IWorkspaceConnector or something else?

I've not found any reference to this class in wiki or forum, so any answer will be really appreciate.

0 votes



3 answers

Permanent link
It seems that a IWorkspace object can be used instead of IFlowNodeHandle for the method addDeliverFlow. But I've always this problem because if I want to change a flow target in a FlowTable I'd like to know how to recognize FlowEntry or FlowNode without description. How can I get IWorkspace/IWorkspaceConnection object from IFlowEntry/IFlowNode and vice versa?

0 votes


Permanent link
mikyjpeg wrote:
It seems that a IWorkspace object can be used instead of
IFlowNodeHandle for the method addDeliverFlow. But I've always this
problem because if I want to change a flow target in a FlowTable I'd
like to know how to recognize FlowEntry or FlowNode without
description. How can I get IWorkspace/IWorkspaceConnection object
from IFlowEntry/IFlowNode and vice versa?


You can get a workspace connection from a workspace handle (which is a
flow node handle) via IWorkspaceManager#getWorkspaceConnection().

JohnC
SCM Server

0 votes


Permanent link
Thank you very much. I only have to cast IFlowNodeHandle to IWorkspaceHandle and it works!

mikyjpeg wrote:
It seems that a IWorkspace object can be used instead of
IFlowNodeHandle for the method addDeliverFlow. But I've always this
problem because if I want to change a flow target in a FlowTable I'd
like to know how to recognize FlowEntry or FlowNode without
description. How can I get IWorkspace/IWorkspaceConnection object
from IFlowEntry/IFlowNode and vice versa?


You can get a workspace connection from a workspace handle (which is a
flow node handle) via IWorkspaceManager#getWorkspaceConnection().

JohnC
SCM Server

0 votes

Your answer

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

Question asked: May 13 '09, 8:53 a.m.

Question was seen: 5,924 times

Last updated: May 13 '09, 8:53 a.m.

Confirmation Cancel Confirm