Start the matcher with a flowscript call, and from flowscript, call the 
pipeline you want. Then regarding the result of that pipeline, you can choose 
in flowscript which sendpage you want to execute. 

So, in flowscript, use

var pipeutil = 
cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);

// now possible to call some pipeline

var result = pipeutil.processToDOM("/rss/getfeeds"); // rss/getfeeds pipeline 
get feeds for example

// evaluate DOM result 
// store

You can also processToSax or ToStream, see [1]

Regards Ard

[1] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/flow/util/PipelineUtil.html

> 
> Hi,
> What is the best way to evaluate an result of a pipeline and 
> act upon it.
> 
> My scenario: 
> I use an REST service to request data from an online source 
> and store it into 
> my database. If this pipeline deliverst no data or an error 
> msg, I would like 
> to invoke another pipline to request the data from another source.
> 
> As this is a repeated task, I would use a cron job to start 
> the pipline.
> Can I do this with flow script, if yes, how do I evalute the 
> result of the 
> pipline and act on it?
> 
> /christoph
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to