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.
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
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?
mikyjpeg wrote:
You can get a workspace connection from a workspace handle (which is a
flow node handle) via IWorkspaceManager#getWorkspaceConnection().
JohnC
SCM Server
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
Thank you very much. I only have to cast IFlowNodeHandle to IWorkspaceHandle and it works!
You can get a workspace connection from a workspace handle (which is a
flow node handle) via IWorkspaceManager#getWorkspaceConnection().
JohnC
SCM Server
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