About data port

Hi,

One of my task has two custom data ports that can get data from one server
port. But it just connect one , the other one is failed.
I use the command like this:
portA.connectTo(portB);
portA.connectTo(portC);

In this case, the portB can connect with portA, but portC is failed.
If I run "connectPorts()", then two ports can be connected.
What's the problem here?

Liu

About data port

Sorry to disturb. It's solved. It should like:
portB.connectTo(portA);
portC.connectTo(portA);

2009/3/23 guoliang liu <gliang [dot] liu [dot] cn [..] ...>

> Hi,
>
> One of my task has two custom data ports that can get data from one server
> port. But it just connect one , the other one is failed.
> I use the command like this:
> portA.connectTo(portB);
> portA.connectTo(portC);
>
> In this case, the portB can connect with portA, but portC is failed.
> If I run "connectPorts()", then two ports can be connected.
> What's the problem here?
>
>
> Liu
>
>
>
>
>

About data port

On Monday 23 March 2009 20:38:35 guoliang liu wrote:
> Sorry to disturb. It's solved. It should like:
> portB.connectTo(portA);
> portC.connectTo(portA);

That's correct. If you use the DeploymentComponent, it will do this kind of
connection magic automatically for you.

Peter

>
>
>
> 2009/3/23 guoliang liu <gliang [dot] liu [dot] cn [..] ...>
>
> > Hi,
> >
> > One of my task has two custom data ports that can get data from one
> > server port. But it just connect one , the other one is failed.
> > I use the command like this:
> > portA.connectTo(portB);
> > portA.connectTo(portC);
> >
> > In this case, the portB can connect with portA, but portC is failed.
> > If I run "connectPorts()", then two ports can be connected.
> > What's the problem here?
> >
> >
> > Liu

Re: About data port

sspr wrote:

On Monday 23 March 2009 20:38:35 guoliang liu wrote:
> Sorry to disturb. It's solved. It should like:
> portB.connectTo(portA);
> portC.connectTo(portA);

That's correct. If you use the DeploymentComponent, it will do this kind of
connection magic automatically for you.

Peter

>
>
>
> 2009/3/23 guoliang liu <gliang [dot] liu [dot] cn [..] ...>
>
> > Hi,
> >
> > One of my task has two custom data ports that can get data from one
> > server port. But it just connect one , the other one is failed.
> > I use the command like this:
> > portA.connectTo(portB);
> > portA.connectTo(portC);
> >
> > In this case, the portB can connect with portA, but portC is failed.
> > If I run "connectPorts()", then two ports can be connected.
> > What's the problem here?
> >
> >
> > Liu

Well, I have been caught by this 'problem' as well, when making connections in code. The reason is that the documentation (that is, component builder's manual) is not detailed about it in the section Setting up the Data Flow. May I suggest to replace

Before calling connectPorts, one may connect individual ports using a_port.connectTo(&b_port); when complexer data flow networks need to be formed.

with something like this:

Before calling connectPorts, one may connect individual ports, e.g., when the portnames do not match or when complexer data flow networks need to be formed. Suppose that Task A has a port a_port, Task B a b_port and Task C a c_port. Then (shared) connections are made as follows:
b_port.connectTo(&a_port);
c_port.connectTo(&a_port);
Note that the order of ports matters; the following would NOT work:
a_port.connectTo(&b_port);
a_port.connectTo(&c_port);
It would leave c_port unconnected, as a_port already has a connection.

Theo.

About data port

On Wednesday 25 March 2009 09:31:08 t [dot] j [dot] a [dot] devries [..] ... wrote:
>
>
> Well, I have been caught by this 'problem' as well, when making connections
> in code. The reason is that the documentation (that is, component builder's
> manual) is not detailed about it in the section Setting up the Data Flow.
> May I suggest to replace

Suggestion merged in docs.

Thanks !

Peter