uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java [183:222]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FlowControllerDescription desc = getResourceSpecifierFactory()
            .createFlowControllerDescription();

    desc.setImplementationName(FixedFlowController.class.getName());

    ProcessingResourceMetaData metaData = desc.getFlowControllerMetaData();
    metaData.setName("Fixed Flow Controller");
    metaData.setDescription("Simple FlowController that uses the FixedFlow element of the\n"
            + "\t\taggregate descriptor to determine a linear flow.");
    metaData.setVendor("The Apache Software Foundation");
    metaData.setVersion("1.0");

    Capability capability = getResourceSpecifierFactory().createCapability();
    metaData.setCapabilities(new Capability[] { capability });

    ConfigurationParameter param = getResourceSpecifierFactory().createConfigurationParameter();
    param.setName("ActionAfterCasMultiplier");
    param.setType("String");
    param.setDescription(
            "The action to be taken after a CAS has been input to a CAS Multiplier and the CAS Multiplier has finished processing it.\n"
                    + "\t\t Valid values are:\n"
                    + "\t\t\tcontinue - the CAS continues on to the next element in the flow\n"
                    + "\t\t\tstop - the CAS will no longer continue in the flow, and will be returned from the aggregate if possible.\n"
                    + "\t\t\tdrop - the CAS will no longer continue in the flow, and will be dropped (not returned from the aggregate) if possible.\t \n"
                    + "\t\t\tdropIfNewCasProduced (the default) - if the CAS multiplier produced a new CAS as a result of processing this CAS, then this\n"
                    + "\t\t\t\tCAS will be dropped.  If not, then this CAS will continue.");
    ConfigurationParameterDeclarations parameterDeclarations = getResourceSpecifierFactory()
            .createConfigurationParameterDeclarations();
    parameterDeclarations.setConfigurationParameters(new ConfigurationParameter[] { param });
    metaData.setConfigurationParameterDeclarations(parameterDeclarations);

    NameValuePair paramSetting = getResourceSpecifierFactory().createNameValuePair();
    paramSetting.setName("ActionAfterCasMultiplier");
    paramSetting.setValue("dropIfNewCasProduced");
    ConfigurationParameterSettings parameterSettings = getResourceSpecifierFactory()
            .createConfigurationParameterSettings();
    parameterSettings.setParameterSettings(new NameValuePair[] { paramSetting });
    metaData.setConfigurationParameterSettings(parameterSettings);

    return desc;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



uimaj-core/src/main/java/org/apache/uima/flow/impl/FixedFlowController.java [226:265]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FlowControllerDescription desc = getResourceSpecifierFactory()
            .createFlowControllerDescription();

    desc.setImplementationName(FixedFlowController.class.getName());

    ProcessingResourceMetaData metaData = desc.getFlowControllerMetaData();
    metaData.setName("Fixed Flow Controller");
    metaData.setDescription("Simple FlowController that uses the FixedFlow element of the\n"
            + "\t\taggregate descriptor to determine a linear flow.");
    metaData.setVendor("The Apache Software Foundation");
    metaData.setVersion("1.0");

    Capability capability = getResourceSpecifierFactory().createCapability();
    metaData.setCapabilities(new Capability[] { capability });

    ConfigurationParameter param = getResourceSpecifierFactory().createConfigurationParameter();
    param.setName("ActionAfterCasMultiplier");
    param.setType("String");
    param.setDescription(
            "The action to be taken after a CAS has been input to a CAS Multiplier and the CAS Multiplier has finished processing it.\n"
                    + "\t\t Valid values are:\n"
                    + "\t\t\tcontinue - the CAS continues on to the next element in the flow\n"
                    + "\t\t\tstop - the CAS will no longer continue in the flow, and will be returned from the aggregate if possible.\n"
                    + "\t\t\tdrop - the CAS will no longer continue in the flow, and will be dropped (not returned from the aggregate) if possible.\t \n"
                    + "\t\t\tdropIfNewCasProduced (the default) - if the CAS multiplier produced a new CAS as a result of processing this CAS, then this\n"
                    + "\t\t\t\tCAS will be dropped.  If not, then this CAS will continue.");
    ConfigurationParameterDeclarations parameterDeclarations = getResourceSpecifierFactory()
            .createConfigurationParameterDeclarations();
    parameterDeclarations.setConfigurationParameters(new ConfigurationParameter[] { param });
    metaData.setConfigurationParameterDeclarations(parameterDeclarations);

    NameValuePair paramSetting = getResourceSpecifierFactory().createNameValuePair();
    paramSetting.setName("ActionAfterCasMultiplier");
    paramSetting.setValue("dropIfNewCasProduced");
    ConfigurationParameterSettings parameterSettings = getResourceSpecifierFactory()
            .createConfigurationParameterSettings();
    parameterSettings.setParameterSettings(new NameValuePair[] { paramSetting });
    metaData.setConfigurationParameterSettings(parameterSettings);

    return desc;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



