Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 69595 invoked from network); 10 Oct 2006 22:51:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2006 22:51:15 -0000 Received: (qmail 13376 invoked by uid 500); 10 Oct 2006 22:51:10 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 13315 invoked by uid 500); 10 Oct 2006 22:51:10 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 13302 invoked by uid 99); 10 Oct 2006 22:51:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 15:51:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.56.2.222] (HELO mx200i.civica.com.au) (203.56.2.222) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 15:51:08 -0700 Received: from gateway.civica.com.au (gateway.civica.com.au [10.61.100.12]) by mx200i.civica.com.au (BorderWare MXtreme Mail Firewall) with ESMTP id 229CB76BC5 for ; Wed, 11 Oct 2006 08:50:45 +1000 (EST) Received: from newmail.civica.com.au ([10.61.106.3]) by gateway.civica.com.au with Microsoft SMTPSVC(6.0.3790.1830); Wed, 11 Oct 2006 08:50:45 +1000 Received: from [10.61.106.143] ([10.61.106.143]) by newmail.civica.com.au with Microsoft SMTPSVC(6.0.3790.1830); Wed, 11 Oct 2006 08:50:16 +1000 Message-ID: <452C23A8.5060609@civica.com.au> Date: Wed, 11 Oct 2006 08:50:16 +1000 From: Tony Edwards User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Pipeline result in a flowscript? References: <452BC123.7020203@weitling.net> <452C0A31.6060505@gmx.de> In-Reply-To: <452C0A31.6060505@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 10 Oct 2006 22:50:16.0706 (UTC) FILETIME=[74607E20:01C6ECBE] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Two flowscript calls should do it: var pipelineUtil = cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil); var document = pipelineUtil.processToDOM("webHierarchyLink", null); First line sets up the magic, the second line gets the result of the "webHierarchyLink" matcher in the sitemap as a dom document which can be further processed etc. Hope this helps. Regards, Tony (Edwards) Joerg Heinicke wrote: > On 10.10.2006 17:49, Dev at weitling wrote: > >> What's the best way to get the result of a pipeline for further >> processing in a flowscript? > >> cocoon.processPipelineTo looks a little bit like overkill with its bean >> and stream parameters. > > There is a class called PipelineUtil. Sample code should also be > available "somewhere" (wiki etc.). > >> Or: Effectively I just want to get one value from a JDBC connection. >> Just one lonely integer... > > As Tony said (hey, Tony, you are back to Cocoon? :) ), put it in > a "service layer". If you do not have structured your application into > different layers you can just extract the code into a Java class. You > simply access any Java class in flowscript. > > At least using a different pipeline looks like complete overkill (not > only cocoon.processPipelineTo). > > J�rg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > -- This email is from Civica Pty Limited and it, together with any attachments, is confidential to the intended recipient(s) and the contents may be legally privileged or contain proprietary and private information. It is intended solely for the person to whom it is addressed. If you are not an intended recipient, you may not review, copy or distribute this email. If received in error, please notify the sender and delete the message from your system immediately. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Civica and do not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Civica by email. Please note that neither Civica nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Civica may be monitored to protect the business interests of Civica. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org