>
> We talked about how you can achieve what you need to do, and I believe
> that you would need to create two activities and have two processors
> in the workflow, one that receives at depth 0, and a second one who
> does not receive anything, but has a conditional 'Run after' link to
> the first processor. You can then run anything you need to do 'after
> list completion' in the second processor - the problem then is how to
> pass the state from the first to the second activity - it depends on
> what you need to do in the second phase what you would need to pass.
>
>
This direction seems simpler for me.
What I need is a simple boolean flag whether the interation is the end or
not.
When I make a workflow like:
any_previous_activity (depth 1) --(merge)--> (depth 0) main_activity
|--> (run after) conditinal_activity----|
does this work as intended, main_acitivity recieves some special input from
the conditional_activity, everything in the streaming mannar?
Or the main_activity has another input port which recieves the output of the
conditional_activity -- well I am not sure what happens in this case.
I can configure the main_activity to process the main inputs first in the
streaming mannar, and recieve the output of the conditional_activity at
last?
Many thanks,
-Yoshinobu
> Another alternative is to accept at depth 1, but just as T2Reference's
> and do the for-loop internally in the activity, dereferencing one and
> one value of the list. You would thereby avoid the large memory usage,
> but that activity would not get called until the whole list is ready.
>
> A combination of these two approaches could also be considered.. For
> instance you can have the second activity receive a list of values,
> connecting that input port to an output port from the first activity
> (which would have depth 0). On the second activity's input port you
> would set that you want T2Reference as the type (instead of say
> String), and that way you could get rid of the conditional link.
> (This would also avoid the problem of when you have lists of lists,
> and you want several invocations of the second activity without
> waiting for all the lists to be produced)
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
>
--
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