From uima-user-return-484-apmail-incubator-uima-user-archive=incubator.apache.org@incubator.apache.org Wed Aug 29 09:38:58 2007 Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 77293 invoked from network); 29 Aug 2007 09:38:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 09:38:58 -0000 Received: (qmail 80657 invoked by uid 500); 29 Aug 2007 09:38:53 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 80535 invoked by uid 500); 29 Aug 2007 09:38:53 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 80526 invoked by uid 99); 29 Aug 2007 09:38:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 02:38:53 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of benjams@il.ibm.com designates 195.212.29.150 as permitted sender) Received: from [195.212.29.150] (HELO mtagate1.de.ibm.com) (195.212.29.150) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 09:39:44 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id l7T9cQEE640714 for ; Wed, 29 Aug 2007 09:38:26 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l7T9cQ0H1142940 for ; Wed, 29 Aug 2007 11:38:26 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l7T9cQxM029273 for ; Wed, 29 Aug 2007 11:38:26 +0200 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l7T9cQlZ029266 for ; Wed, 29 Aug 2007 11:38:26 +0200 In-Reply-To: <46D53C66.8070104@igbmc.u-strasbg.fr> Subject: Re: Cas Multiplier with Flow Controller To: uima-user@incubator.apache.org X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: From: Benjamin Sznajder Date: Wed, 29 Aug 2007 12:36:31 +0300 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 7.0.2HF71 | November 3, 2006) at 29/08/2007 12:38:25 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Hi Sophie., I will prepare soonly a sample code and send you. Regards, Benjamin et bonjour a Strasbourg. candel To uima-user@incubator.apache.org 29/08/2007 12:29 cc Subject Please respond to Re: Cas Multiplier with Flow uima-user@incubat Controller or.apache.org Adam Lally wrote: > On 7/3/07, Benjamin Sznajder wrote: > >> Hi, >> >> I am trying to run a CAS Multiplier with a Flow Controller. >> >> My CPE is composed of : >> >> - a Collection reader that reads an image and saves in a CAS a byte >> array >> of its content. >> - a CAS Multiplier that currently, only creates 3 identical CASes with >> same content than the initial >> - Some AEs that extract the MPEG7 features of this images >> - A CAS consumer that creates the XML File representing the MPEG7. >> >> The Flow Controller I used is the WhiteBoardFlowController from the >> example. >> I added to this class the following: >> >> >> protected Flow newCasProduced(CAS newCas, >> String producedBy) { >> getContext().getLogger().log(Level.SEVERE, "newCasProduced"); >> WhiteboardFlow flow = new WhiteboardFlow(); >> flow.setCas(newCas); >> return flow; >> } >> >> > > The newCasProduced method needs to be added to the WhiteboardFlow > class, not that WhiteboardFlowController class. Otherwise it looks > like what you are doing is right. > > The idea behind this is that the Flow of the new CAS might be related > to the Flow of its "parent" CAS (the one that was input to the CAS > Multiplier). > > You are right though that the documentation on this could be better. > > -Adam > > > Is this subject closed? did you find a way to run your CasMultiplier within your FlowController? I have exactly the same goal and I can't find a way to make it working. I would be very grateful if you could publish your solution if you had one. Thank you very much Regards, Sophie