Hi,

Thank you for your helps.
I tried to follow your description:


>
> > Yes, assuming that my activity recieves a streamed input iteratively,
> > how can I notice the end of the iteration, from inside my activity code?
>
> Then you could make your activity expect depth 1 at the activity input
> port, with a granular depth at 0. (1: list of values, 0: individual
> values).
>

Does it mean I have to set the granular depth "0" for the input port of my
activity?
I set the depth to 1, but could not find any API to set a *granular depth*
for an *input* port.
May I have an example code or a method name to do that?


>
> That means that you expect the full list, but you don't mind being fed
> item by item.
>
>
> That means that you should get something like:
>
> [0] value0
> [1] value1
> [2] value2
> [] {value0, value1, value2}
>

In the above setting, i.e. depth = 1 and feeding a list as input, I got
[0] value0
[1] value1
...

but no
[] {value0, value1, value2}

Probably I missed something -- newer API exist for granular depth?

Thank you for your helps again.


Best regards,

-Yoshinobu


>
> So the 'end of the iteration' if you like would be when you receive
> the full list in the end.
>
> I'm not sure if we've done an activity that receives inputs in this
> way, but it should be possible.
>



-- 
Yoshinobu Kano (Given/Family)
[email protected]
Project Research Associate, the University of Tokyo / U-Compare Project Lead
http://www-tsujii.is.s.u-tokyo.ac.jp/ http://u-compare.org/kano/
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to