Constructor and Description |
---|
JCasFlow_ImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
aborted()
By default, does nothing.
|
boolean |
continueOnFailure(String failedAeKey,
Exception failure)
By default, returns false, indicating that processing cannot continue after a failure.
|
protected JCas |
getJCas()
Gets the JCas being routed by this Flow object.
|
Flow |
newCasProduced(AbstractCas newCas,
String producedBy)
Overriden to check that
newCas is an instanceof JCas . |
protected Flow |
newCasProduced(JCas newCas,
String producedBy)
By default, throws an exception to indicate this this Flow object does not support new CASes
being produced in the middle of the flow.
|
void |
setJCas(JCas aJCas)
Deprecated.
this is done automatically by the framework with the Flow object is created
|
@Deprecated public void setJCas(JCas aJCas)
FlowController.computeFlow(AbstractCas)
method after this Flow object is instantiated.aJCas
- the JCas to be routed by this Flow objectpublic final Flow newCasProduced(AbstractCas newCas, String producedBy) throws AnalysisEngineProcessException
newCas
is an instanceof JCas
. If it is, then
newCasProduced(JCas,String)
is called. If not, an exception is thrown.newCasProduced
in interface Flow
newCas
- the new CASproducedBy
- key of the AnalysisEngine (CAS Multiplier) that produced the new CASaCAS
through the
Aggregate Analysis Engine.AnalysisEngineProcessException
- passthruFlow.newCasProduced(AbstractCas, String)
public boolean continueOnFailure(String failedAeKey, Exception failure)
continueOnFailure
in interface Flow
failedAeKey
- The key of the analysis engine that failed.failure
- the Exception that occurredFlow.continueOnFailure(String, java.lang.Exception)
public void aborted()
aborted
in interface Flow
Flow.aborted()
protected Flow newCasProduced(JCas newCas, String producedBy) throws AnalysisEngineProcessException
newCas
- the new JCasproducedBy
- the key of the CAS Multiplier that produced this JCasAnalysisEngineProcessException
- -Flow.newCasProduced(AbstractCas, String)
protected JCas getJCas()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.