Adam Lally wrote:
On 3/2/07, Michael Baessler <[EMAIL PROTECTED]> wrote:
But how can I specify a order for my custom flow? Is this also possible
or do I have to use configuration parameter settings?
Like this:

<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier";>
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<primitive>false</primitive>

<delegateAnalysisEngineSpecifiers>
 <delegateAnalysisEngine key="a1">
   <import location="Annotator1.xml"/>
 </delegateAnalysisEngine>
 <delegateAnalysisEngine key="a2">
   <import location="Annotator2.xml"/>
 </delegateAnalysisEngine>
</delegateAnalysisEngineSpecifiers>
<flowController key="MyFlowController">
 <import location="MyFlowController.xml"/>
</flowController>

<analysisEngineMetaData>
<name>Aggregate with custom flow controller</name>
<version>1.0</version>
<vendor>The Apache Software Foundation</vendor>

<flowConstraints>
 <fixedFlow>
   <node>a1</node>
   <node>a2</node>
 </fixedFlow>
</flowConstraints>

</analysisEngineMetaData>
</analysisEngineDescription>


Your custom flow controller in its intialization can query the
<flowContraints> and find out that the sequence is supposed to be a1,
a2; and it can act accordingly.
But is this not a little bit confusing for our users when using a fixedFlow constraint just to configure a custom flow?

I think it would be better to have an additional flowConstraint tag like <customFlow> to specify the order of the custom flow. So that fixedFlow and capabilityLanguageFlow must only be used when
these flows are used.

-- Michael

Reply via email to