Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 59673 invoked from network); 16 Sep 2010 17:07:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 17:07:25 -0000 Received: (qmail 17646 invoked by uid 500); 16 Sep 2010 17:07:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 17613 invoked by uid 500); 16 Sep 2010 17:07:24 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 17605 invoked by uid 99); 16 Sep 2010 17:07:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 17:07:24 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 17:07:20 +0000 Received: by qwk4 with SMTP id 4so1051139qwk.32 for ; Thu, 16 Sep 2010 10:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=P3k+MOtZAV+8rD+gjEp7f/4iodtIs4bq/VSG2kmV9/4=; b=d2HpNFsxIzuqkPxKCeMGdmJbiZf6NFkfuUE5kIZDKFaPhc02cgJdxME5K+UXfEAZHA /7eJ/PvzXj5djB/VnrZTq777zrl1OKrzsq40XCfm7dAsCgK7Ozks6/qAU/Ey9vyVMl4c QQsjVaM7ODX2m397zWemxuaTdeCLR3GQOPLoI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=ENT5IAaac+qDwPqC7McSB48AiSP2E64HdfqkYqLEhg2Rk3bgrZE+uiDCcC3FNhFkyQ WiZQl5JP1ieVoMkEBsuSrY5jawIdFL5/vNCJNfUIG+ubJxcnyiXjqmgAoCkojJrf3fQD WpA3ByQL7uP7r1CnvU3AKpFRMj0Lw8SiFwu2o= Received: by 10.224.89.11 with SMTP id c11mr2433979qam.43.1284656818323; Thu, 16 Sep 2010 10:06:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.11.22 with HTTP; Thu, 16 Sep 2010 10:06:38 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Thu, 16 Sep 2010 19:06:38 +0200 Message-ID: Subject: Re: choose() question To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You can use an interceptor and then stop() when to abort. Or you can set the Exchange.STOP property on the Exchange from a Processor to tell it to stop On Thu, Sep 16, 2010 at 7:04 PM, Donald Whytock wrote: > Is there something along the lines of an abortable Pipeline, such that > it will go through a sequence of processors until one of them returns > a certain value, sets a property on the exchange, etc? > > On Thu, Sep 16, 2010 at 12:49 PM, Claus Ibsen wro= te: >> On Thu, Sep 16, 2010 at 6:45 PM, Donald Whytock wro= te: >>> Hi all... >>> >>> Newbie question regarding choose(). =A0Given >>> >>> from(endpoint).choose() >>> =A0.when(predA).process(processorA) >>> =A0.when(predB).process(processorB); >>> >>> If predA and predB are both true, do processorA and processorB both >>> get called? =A0Or does processing stop with processorA? >>> >> >> Only the first one is chosen. (its not a case, always only 1 at most >> is selected) >> >> >>> Don >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus