Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 79104 invoked from network); 12 Nov 2003 23:44:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Nov 2003 23:44:24 -0000 Received: (qmail 56917 invoked by uid 500); 12 Nov 2003 23:43:11 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 56824 invoked by uid 500); 12 Nov 2003 23:43:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 56755 invoked from network); 12 Nov 2003 23:43:09 -0000 Received: from unknown (HELO sati.virbus.de) (145.253.246.81) by daedalus.apache.org with SMTP; 12 Nov 2003 23:43:09 -0000 Received: from sati.virbus.de (localhost [127.0.0.1]) by localhost (SMTP Server) with ESMTP id 24C25166ABC for ; Thu, 13 Nov 2003 00:43:16 +0100 (MET) Received: from virbus.de (a183069.studnetz.uni-leipzig.de [139.18.183.69]) by sati.virbus.de (SMTP Server) with ESMTP id E119B166AB6 for ; Thu, 13 Nov 2003 00:43:15 +0100 (MET) Message-ID: <3FB2C5CD.5000201@virbus.de> Date: Thu, 13 Nov 2003 00:44:13 +0100 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [vote] forbidding flowscripts with no sendpage redirects (was Re: Saving pipeline output to a temp file...) References: <3FB279F2.18467.1886D8C@localhost> In-Reply-To: <3FB279F2.18467.1886D8C@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 13.11.2003 00:20, Andrzej Jan Taramina wrote: >> >> >> >> >> >> >> >> >> >> >>function dumpData() { >> dumpUserData(); >> dumpOrderData(); >> dumpNewsItems(); >> cocoon.sendPage("view"); >>} >> > > > The main problem I have with this approach is that without looking at the > script code, there is no easy way of telling that the first match will end up > calling the second one and so the flow of the application becomes more > opaque...and thus harder to understand and maintain. > > I like Tim's approach much better....where everything is in one place and the > high level flow of control is quite clear and transparent. For the moment it's better to have this that restrictive. But have a look at the recent thread "[RT] Is flowscript polluting sitemap readability?". Maybe, but really only maybe as it was only a random thought and we must think about the concept, there will be a Selector in the future that leads the sitemap flow depending on the result of the flow script. This brings the light back to the sitemap and can reduce opaqueness ;-) And this will remove the need for such an action-like behaviour you and Tim relied on. BTW what exactly should the FlowAction do? I didn't follow the thread closely. If it does that what I imagine (or fear) we are back to actions and don't need any flow. I like the Selector approach much more. But let's discuss it at that thread. Joerg