Hi again,
I had a look at the Flow Controller section in the Docs but so far I can't see
how I can easily get rid of a CAS containing a "bad" document alltogether.
In the application we want to sort out and drop CASes at three different points
in a fixed flow (so far in a simple CPE) based on some previous AEs decision.
E.g. one AE classifies a document and only a certain class of document should be
allowed to continue processing. So I could add three new aggregate AEs at the
three decision points and implement some logic there.
So far so good. I understand that I would have to wrap my surrent pipeline in an
aggregate to add a Flow Controller. But here, the flow seems to be determined
only once when the CAS enters this new aggregate. What I need to do is to decide
at three point further down the line that the CAS doesn't need any more
processing and can be dropped completely, but in the Flow.next() method I don't
seem to have any reference to the CAS any more.
UIMA seems to be able to "drop" CASes when exeptions occur in a TAE alltogether.
Is there a way of triggering this behaviour without actually having to throw an
exception (because this is another - rather nasty - workaround I've been
thinking about)
Thanks for any advice,
--
--------------------------------
Christoph Büscher