Class RuleProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.RuleProcessor
Sets parameters of the pipeline from JEXL rules, e.g. intermediate results or the id of the next function (see
FWRuleSet). The rules are part of the configuration:
<processor class="net.simplace.pipe.processors.RuleProcessor">
<configuration>
<rule target="sim_work.resultpage">
${sim_work.simulationcount} eq 1 ? 'sim_work.form.result_variable' : 'sim_work.form.result_simulation'
</rule>
</configuration>
</processor>
The rules are evaluated in their order on the in parameters, so later rules see the results of earlier ones; all
results are written as out parameters.- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprocess()Must be overridden to implement the concrete processing step.Methods inherited from class FWProcessor
checkInParameterMap, checkOutParameterMap, clone, containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Constructor Details
-
RuleProcessor
public RuleProcessor()
-
-
Method Details
-
process
Description copied from class:FWProcessorMust be overridden to implement the concrete processing step. Reads from the in parameters and writes results withFWProcessor.setOutParameter(String, Object).- Specified by:
processin classFWProcessor- Returns:
trueon success;falsemakesFWProcessor.pipe(FWObservable, Integer)fail- Throws:
PipeLineException- if processing fails
-