blob: 52197394f8dbdba3547fdf74f53d0b3a0bd2583a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" ?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
-->
<!-- Descriptor for testing configuration groups. -->
<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<primitive>false</primitive>
<delegateAnalysisEngineSpecifiers>
<delegateAnalysisEngine key="Annotator1">
<import location="AnnotatorWithConfigurationGroups.xml"/>
</delegateAnalysisEngine>
<delegateAnalysisEngine key="Annotator2">
<import location="AnnotatorWithConfigurationGroups.xml"/>
</delegateAnalysisEngine>
<delegateAnalysisEngine key="Service">
<uriSpecifier>
<uri>this.does.not.exist.at.least.i.hope.not</uri>
<protocol>Vinci</protocol>
</uriSpecifier>
</delegateAnalysisEngine>
</delegateAnalysisEngineSpecifiers>
<analysisEngineMetaData>
<name>Aggregate TAE with Configuration Parameter Overrides</name>
<description>For testing configuration parameters.</description>
<version>1.0</version>
<vendor>The Apache Software Foundation</vendor>
<!-- Configuration Parameter Definitions -->
<configurationParameters defaultGroup="en" searchStrategy="language_fallback">
<configurationGroup names="en">
<!-- Explicit override -->
<configurationParameter>
<name>AggregateParam</name>
<description/>
<type>String</type>
<overrides>
<parameter>Annotator1/StringParam</parameter>
</overrides>
</configurationParameter>
<!-- Implicit override -->
<configurationParameter>
<name>StringArrayParam</name>
<description/>
<type>String</type>
<multiValued>true</multiValued>
</configurationParameter>
<!-- Override multiple params -->
<configurationParameter>
<name>AggregateParam2</name>
<description/>
<type>Integer</type>
<overrides>
<parameter>Annotator1/IntegerParam</parameter>
<parameter>Annotator2/IntegerParam</parameter>
</overrides>
</configurationParameter>
</configurationGroup>
</configurationParameters>
<!-- Values for the configuration parameters -->
<configurationParameterSettings>
<settingsForGroup name="en">
<nameValuePair>
<name>AggregateParam</name>
<value><string>override</string></value>
</nameValuePair>
<nameValuePair>
<name>StringArrayParam</name>
<value>
<array><string>override</string></array>
</value>
</nameValuePair>
<nameValuePair>
<name>AggregateParam2</name>
<value><integer>100</integer></value>
</nameValuePair>
</settingsForGroup>
</configurationParameterSettings>
<flowConstraints>
<fixedFlow>
<node>Annotator1</node>
<node>Annotator2</node>
<node>Service</node>
</fixedFlow>
</flowConstraints>
<!-- Capabilities: Inputs and Outputs -->
<capabilities>
<capability>
<inputs/>
<outputs/>
<outputSofas>
<sofaName>outputSofa</sofaName>
</outputSofas>
<languagesSupported/>
</capability>
</capabilities>
</analysisEngineMetaData>
<sofaMappings>
<sofaMapping>
<componentKey>Service</componentKey>
<componentSofaName>serviceSofa</componentSofaName>
<aggregateSofaName>outputSofa</aggregateSofaName>
</sofaMapping>
</sofaMappings>
</taeDescription>