You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2005/03/09 16:59:31 UTC

[FLOWSCRIT] Equivalent Action to processPipeline

Hi all,

I'm looking  for a Action which is doing the same thing as this 
flowscript method : cocoon.ProcessPipeline

Thanks.
Lionel

-- 
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90


Re: [FLOWSCRIT] Equivalent Action to processPipeline

Posted by Irv Salisbury <ir...@gmail.com>.
If you just want to aggregate your content from another source, you
can also look at the CIncludeTransformer.  You can then, in the middle
of your pipeline, fetch another pipeline and have it in your current
one.

Details can be found here:

http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html


On Thu, 10 Mar 2005 21:44:09 +0000, Ellis Pritchard
<el...@nukinetics.com> wrote:
> The org.apache.cocoon.acting.CopySourceAction may be what you want; it
> executes a pipeline and writes the result to a ModifiableSource, e.g. a
> file.
> 
> <map:act type="copy-source" src="cocoon://pipeline.xml">
>      <map:parameter name="dest" value="context://WEB-INF/data/file.xml"/>
> </map:act>
> 
> You may also want to look at
> http://wiki.apache.org/cocoon/XModuleSource to write the output to e.g.
> a request attribute; if you can figure that stuff out you are a genius!
> 
> Ellis.
> 
> 
> On 9 Mar 2005, at 15:59, Lionel Crine wrote:
> 
> > Hi all,
> >
> > I'm looking  for a Action which is doing the same thing as this
> > flowscript method : cocoon.ProcessPipeline
> >
> > Thanks.
> > Lionel
> >
> > --
> > Lionel CRINE
> > Ingénieur Systèmes documentaires
> > Société : 4DConcept
> > 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> > Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
> >
> > <crine.vcf>------------------------------------------------------------
> > ---------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [FLOWSCRIT] Equivalent Action to processPipeline

Posted by Ellis Pritchard <el...@nukinetics.com>.
The org.apache.cocoon.acting.CopySourceAction may be what you want; it  
executes a pipeline and writes the result to a ModifiableSource, e.g. a  
file.

<map:act type="copy-source" src="cocoon://pipeline.xml">
     <map:parameter name="dest" value="context://WEB-INF/data/file.xml"/>
</map:act>

You may also want to look at  
http://wiki.apache.org/cocoon/XModuleSource to write the output to e.g.  
a request attribute; if you can figure that stuff out you are a genius!

Ellis.


On 9 Mar 2005, at 15:59, Lionel Crine wrote:

> Hi all,
>
> I'm looking  for a Action which is doing the same thing as this  
> flowscript method : cocoon.ProcessPipeline
>
> Thanks.
> Lionel
>
> --  
> Lionel CRINE
> Ingénieur Systèmes documentaires
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
>
> <crine.vcf>------------------------------------------------------------ 
> ---------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: [FLOWSCRIT] Equivalent Action to processPipeline

Posted by Adam Ratcliffe <ad...@prema.co.nz>.
Hi Lionel

I think the answer to what you want to do really depends upon what you wish
to do with the
pipeline output. For example, I use processPipelineTo() (in flowscript) to
process a JXTemplate
that builds a document that is the input to an XML-RPC call. The output
stream is passed directly
to a Java component from the flowscript.

Error handling is also achievable via flowscript by surrounding the call in
a try/catch block.

I'm not sure if this helps but I'm still not clear on what you're trying to
do.

Cheers
Adam

> -----Original Message-----
> From: Lionel Crine [mailto:crine@4dconcept.fr]
> Sent: Friday, 11 March 2005 2:24 a.m.
> To: users@cocoon.apache.org
> Subject: Re: [FLOWSCRIT] Equivalent Action to processPipeline
>
>
> In fact, I just want to execute a pipeline (which can't generate errors).
> I know I can use the flowscript but I don't want to complicate things
> because I won't develop.
> So I was wondering if the same things exist with action .
> Moreover, I can't use a <map:generate src="cocoon:/"/> because I put
> something else in the flow.
>
> If there is another way, let me know.
>
>
> Lionel
>
> Adam Ratcliffe wrote:
>
> >Hi Lionel
> >
> >I don't know of such an action, what are you trying to do with
> the output of
> >the pipeline? Maybe there's
> >another way of doing this that will meet your needs.
> >
> >Cheers
> >Adam
> >
> >
> >
> >>-----Original Message-----
> >>From: Lionel Crine [mailto:crine@4dconcept.fr]
> >>Sent: Thursday, 10 March 2005 5:00 a.m.
> >>To: users@cocoon.apache.org
> >>Subject: [FLOWSCRIT] Equivalent Action to processPipeline
> >>
> >>
> >>Hi all,
> >>
> >>I'm looking  for a Action which is doing the same thing as this
> >>flowscript method : cocoon.ProcessPipeline
> >>
> >>Thanks.
> >>Lionel
> >>
> >>--
> >>Lionel CRINE
> >>Ingénieur Systèmes documentaires
> >>Société : 4DConcept
> >>22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> >>Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
> >>
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> >
>
> --
> Lionel CRINE
> Ingénieur Systèmes documentaires
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [FLOWSCRIT] Equivalent Action to processPipeline

Posted by Lionel Crine <cr...@4dconcept.fr>.
In fact, I just want to execute a pipeline (which can't generate errors).
I know I can use the flowscript but I don't want to complicate things 
because I won't develop.
So I was wondering if the same things exist with action .
Moreover, I can't use a <map:generate src="cocoon:/"/> because I put 
something else in the flow.

If there is another way, let me know.


Lionel

Adam Ratcliffe wrote:

>Hi Lionel
>
>I don't know of such an action, what are you trying to do with the output of
>the pipeline? Maybe there's
>another way of doing this that will meet your needs.
>
>Cheers
>Adam
>
>  
>
>>-----Original Message-----
>>From: Lionel Crine [mailto:crine@4dconcept.fr]
>>Sent: Thursday, 10 March 2005 5:00 a.m.
>>To: users@cocoon.apache.org
>>Subject: [FLOWSCRIT] Equivalent Action to processPipeline
>>
>>
>>Hi all,
>>
>>I'm looking  for a Action which is doing the same thing as this
>>flowscript method : cocoon.ProcessPipeline
>>
>>Thanks.
>>Lionel
>>
>>--
>>Lionel CRINE
>>Ingénieur Systèmes documentaires
>>Société : 4DConcept
>>22 rue Etienne de Jouy 78353 JOUY EN JOSAS
>>Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>  
>

-- 
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90


RE: [FLOWSCRIT] Equivalent Action to processPipeline

Posted by Adam Ratcliffe <ad...@prema.co.nz>.
Hi Lionel

I don't know of such an action, what are you trying to do with the output of
the pipeline? Maybe there's
another way of doing this that will meet your needs.

Cheers
Adam

> -----Original Message-----
> From: Lionel Crine [mailto:crine@4dconcept.fr]
> Sent: Thursday, 10 March 2005 5:00 a.m.
> To: users@cocoon.apache.org
> Subject: [FLOWSCRIT] Equivalent Action to processPipeline
>
>
> Hi all,
>
> I'm looking  for a Action which is doing the same thing as this
> flowscript method : cocoon.ProcessPipeline
>
> Thanks.
> Lionel
>
> --
> Lionel CRINE
> Ingénieur Systèmes documentaires
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org