I think I should add some more detail about what I am trying to do:
At the moment I have a workflow which calls 2 web services (very often) 
and combines the data afterwards in a beanshell. It works but the user 
has to wait until all the processing is done before seeing any results.
Example of what I want to return:
web service A returns:
   ["no data", "no data", "header A, dataA", "no data", "header A, 
dataA", ...]
web service B returns:
   ["no data", "header B, dataB", "header B, dataB", "header B, dataB", 
"header B, dataB", "header B, dataB", ...]

What I would like to return
   "",                                  - no match
   "",                                  - no match
   "header A, headerB, dataA, dataB",   - first match with header
   "",                                  - no match
   "dataA, dataB",                      - second match no header
   ...

Doing the matching iteratively, as the web services return data, could 
mean that I can provide some results early in the workflow.

A "run after" solution probably means waiting until something has finished.

So far, setting a System Property sounds promising, but I need a name 
which is unique to a run of the workflow. Is there something like a 
runId? The workflow should be able to run on a server reliably.

I hope I have made my problem clearer.

And many thanks for your help.

Anja

Stian Soiland-Reyes wrote:
> On Fri, Oct 30, 2009 at 15:42, Anja Le Blanc
> <[email protected]> wrote:
>> I want to have a Beanshell which runs iteratively and always does one
>> thing, but the first time the inputs come in some configuration it
>> should also do something else (only the first time) - so I need to
>> remember a previous state somewhere.
> 
> It would typically make more sense to have a separate
> initialisation-beanshell processor, and then you can either connect
> the output from this to the second beanshell, or you can just do a
> "Run after" conditional link between the two.
> 
> 

------------------------------------------------------------------------------
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-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/

Reply via email to