uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Epstein <eaepst...@gmail.com>
Subject Re: Error when trying to drop CAS with FlowController
Date Sun, 06 Sep 2015 15:04:14 GMT
Richard,

In general the input CAS must continue down some processing path.
Where is it stored and what triggers its continued processing if it is not
returned?

Eddie

On Sun, Sep 6, 2015 at 10:28 AM, Richard Eckart de Castilho <rec@apache.org>
wrote:

> Hi Eddie,
>
> in most cases, we use process(CAS) and in such a case what you describe
> is very logical.
>
> However, when setting outputsNewCases to true, doesn't the contract change?
> My understanding is that processAndOutputNewCASes(CAS) is being
> used and in such a case. Why shouldn't it be ok that the iterator
> returned by processAndOutputNewCASes does not contain the input CAS?
>
> Cheers,
>
> -- Richard
>
> On 06.09.2015, at 16:21, Eddie Epstein <eaepstein@gmail.com> wrote:
>
> > Hi Richard,
> >
> > FinalStep() in a CasMultiplier aggregate means to stop further flow
> > in the aggregate and return the CAS to the component that passed
> > the CAS into the aggregate, or if a child-CAS, passed the child's
> > parent-CAS into the aggregate.
> >
> > FinalStep(true) is used to stop a child-CAS from being returned
> > to the component. But the contract for an AE is CAS-in/CAS-out,
> > which means a CAS coming into an AE must be returned.
> >
> > Eddie
> >
> > On Sun, Sep 6, 2015 at 9:59 AM, Richard Eckart de Castilho <
> rec@apache.org>
> > wrote:
> >
> >> Hi Eddie,
> >>
> >> ok, but why can input CASes created outside the aggregate not be
> dropped?
> >>
> >> Cheers,
> >>
> >> -- Richard
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message