Package org.apache.uima.flow
Class SimpleStep
java.lang.Object
org.apache.uima.flow.Step
org.apache.uima.flow.SimpleStep
- Direct Known Subclasses:
SimpleStepWithResultSpec
Indicates that a CAS should be routed to a single AnalysisEngine. After it has been processed,
the
Flow.next()
method will be called again to determine the next destination for the
CAS.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the key of the Analysis Engine to which the CAS should be routed.void
setAnalysisEngineKey
(String aKey) Sets the key of the Analysis Engine to which the CAS should be routed.
-
Constructor Details
-
SimpleStep
Creates a new SimpleStep- Parameters:
aCasProcessorKey
- The key of the Analysis Engine to which the CAS should be routed. This must be one of the keys in the FlowController'sFlowControllerContext.getAnalysisEngineMetaDataMap()
.
-
-
Method Details
-
getAnalysisEngineKey
Gets the key of the Analysis Engine to which the CAS should be routed.- Returns:
- an AnalysisEngine key
-
setAnalysisEngineKey
Sets the key of the Analysis Engine to which the CAS should be routed. By using this method, a user's Flow implementation can (but is not required to) reuse the same SimpleStep object multiple times.- Parameters:
aKey
- an Analysis Engine key. This must be one of the keys in the FlowController'sFlowControllerContext.getAnalysisEngineMetaDataMap()
.
-