Am 17.04.2014 15:18, schrieb Richard Eckart de Castilho:
> Have a look at this thread. I believe to have discussed the same general
> issue with Luca there:
>
> http://markmail.org/thread/dgwku65srpvqdvdr
>
> At least, maybe that helps to better pinpoint the problem.

That would work, if the modifier AEs that create new views are not cascaded.

I added a simple AAE created for investigating the problem at the end.

Maybe I did something wrong, but I tested different variants and
debugged the UIMA implementation.

There are five AEs:
- CWEngine: a simple Ruta script (input=input of AAE)
- ModifierCW: Ruta modifier that creates a new view (input=input of AAE,
output=norm_1_out)
- SWEngine: a simple Ruta script (input=norm_1_out)
- ModifierSW: Ruta modifier that creates a new view (input=norm_1_out,
output=norm_2_out)
- SimpleEngine: a simple Ruta script (input=norm_2_out)

ModifierCW works since it uses the default view, but ModifierSW fails
because it gets also the default view despite the mapping.

<?xml version="1.0" encoding="UTF-8"?>

<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier";>
  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
  <primitive>false</primitive> 
  <delegateAnalysisEngineSpecifiers>
    <delegateAnalysisEngine key="CWEngine">
      <import location="CWEngine.xml"/>
    </delegateAnalysisEngine>
    <delegateAnalysisEngine key="SWEngine">
      <import location="SWEngine.xml"/>
    </delegateAnalysisEngine>
    <delegateAnalysisEngine key="SimpleEngine">
      <import location="SimpleEngine.xml"/>
    </delegateAnalysisEngine>
  <delegateAnalysisEngine key="ModifierCW">
      <import location="ModifierCW.xml"/>
    </delegateAnalysisEngine>
    <delegateAnalysisEngine key="ModifierSW">
      <import location="ModifierSW.xml"/>
    </delegateAnalysisEngine>
  </delegateAnalysisEngineSpecifiers>
  <analysisEngineMetaData>
    <name>AAE</name>
    <description/>
    <version>1.0</version>
    <vendor/>
    <configurationParameters/>
    <configurationParameterSettings/>
    <flowConstraints>
      <fixedFlow>
        <node>CWEngine</node>
        <node>ModifierCW</node>
        <node>SWEngine</node>
        <node>ModifierSW</node>
        <node>SimpleEngine</node>
      </fixedFlow>
    </flowConstraints>
    <fsIndexCollection/>
    <capabilities>
      <capability>
        <inputs/>
        <outputs/>
        <inputSofas>
          <sofaName>input</sofaName>
        </inputSofas>
        <outputSofas>
          <sofaName>norm_1_out</sofaName>
          <sofaName>norm_2_out</sofaName>
        </outputSofas>
        <languagesSupported/>
      </capability>
    </capabilities>
  <operationalProperties>
      <modifiesCas>true</modifiesCas>
      <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
      <outputsNewCASes>true</outputsNewCASes>
    </operationalProperties>
  </analysisEngineMetaData>
  <resourceManagerConfiguration/>
<sofaMappings>
    <sofaMapping>
      <componentKey>ModifierCW</componentKey>
      <componentSofaName>out</componentSofaName>
      <aggregateSofaName>norm_1_out</aggregateSofaName>
    </sofaMapping>
    <sofaMapping>
      <componentKey>ModifierSW</componentKey>
      <aggregateSofaName>norm_1_out</aggregateSofaName>
    </sofaMapping>
    <sofaMapping>
      <componentKey>SWEngine</componentKey>
      <aggregateSofaName>norm_1_out</aggregateSofaName>
    </sofaMapping>
    <sofaMapping>
      <componentKey>ModifierSW</componentKey>
      <componentSofaName>out</componentSofaName>
      <aggregateSofaName>norm_2_out</aggregateSofaName>
    </sofaMapping>
    <sofaMapping>
      <componentKey>SimpleEngine</componentKey>
      <aggregateSofaName>norm_2_out</aggregateSofaName>
    </sofaMapping>
    <sofaMapping>
      <componentKey>CWEngine</componentKey>
      <aggregateSofaName>input</aggregateSofaName>
    </sofaMapping>
  <sofaMapping>
      <componentKey>ModifierCW</componentKey>
      <aggregateSofaName>input</aggregateSofaName>
    </sofaMapping>
  </sofaMappings>
</analysisEngineDescription>

Reply via email to