You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by feixiangcq <fe...@gmail.com> on 2010/01/22 14:26:03 UTC

Using flow controller

Hello,
    I am a student studing text mining. I have a problem
about using flow controller.As you introduced,the aggregate
can use FC(flow controller) to determine the flow of the
CASes among the delegates.Now,I want to design an aggregate
including 3 AEes: AE1,AE2,AE3.
    The CAS containing a Tag. The aggregate should work like
this:it first checks the value of Tag.If Tag =1,it sends
CAS to AE1.After AE1 finishes,it sends CAS to AE3.If tag=0,
it send CAS to AE2.After AE2 finishes,it sends CAS to AE3.
    That is to say, the aggregate can determine the flow by
judging the value of Tag.Can the flow controller achieve 
this functionality ? How to design the flow controller?
The project in apache-uima-as doesn't contain an example
about using FC like this. 
    I am very glad to hear your answer.


Re: Using flow controller

Posted by Eddie Epstein <ea...@gmail.com>.
There are three sample flow controllers in the examples.
See $UIMA_HOME/examples/src/org/apache/uima/examples/flow
in the SDK image.

What you describe is pretty simple. Use WhiteboardFlowController.java,
remove most of the code and add what you need :)

On Fri, Jan 22, 2010 at 8:26 AM, feixiangcq <fe...@gmail.com> wrote:
> Hello,
>    I am a student studing text mining. I have a problem
> about using flow controller.As you introduced,the aggregate
> can use FC(flow controller) to determine the flow of the
> CASes among the delegates.Now,I want to design an aggregate
> including 3 AEes: AE1,AE2,AE3.
>    The CAS containing a Tag. The aggregate should work like
> this:it first checks the value of Tag.If Tag =1,it sends
> CAS to AE1.After AE1 finishes,it sends CAS to AE3.If tag=0,
> it send CAS to AE2.After AE2 finishes,it sends CAS to AE3.
>    That is to say, the aggregate can determine the flow by
> judging the value of Tag.Can the flow controller achieve
> this functionality ? How to design the flow controller?
> The project in apache-uima-as doesn't contain an example
> about using FC like this.
>    I am very glad to hear your answer.
>
>