It's all about the answers!

Ask a question

IFlowNode object and handle


Michele Pegoraro (1.8k14119103) | asked May 13 '09, 8:53 a.m.
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.

3 answers



permanent link
Michele Pegoraro (1.8k14119103) | answered May 18 '09, 9:08 a.m.
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?

permanent link
John Camelon (1.7k14) | answered May 19 '09, 11:05 p.m.
JAZZ DEVELOPER
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

permanent link
Michele Pegoraro (1.8k14119103) | answered Jun 04 '09, 2:47 a.m.
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

Your answer


Register or 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.