Package net.simplace.pipe.control
Class FWPipeLineHelper
java.lang.Object
net.simplace.pipe.control.FWPipeLineHelper
Provides different functions of the Impetus Engine.
- Author:
- Andreas Enders
-
Field Summary
FieldsModifier and TypeFieldDescriptionConstant Array of Parameters to Keep -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendAccessLog(String aPipeLineID, String aString) Constructs a FileWriter object given a File object.static booleancheckIfExpression(String aExpression, FWObservable aObservable) if parameter if is given in initialize parameters of the processor it is checked here.static voidfillParameterMapFromFormElement(Map<String, Object> aParameterMap, org.jdom2.Element aSettingElement) static FWObservablefilterParameters(FWObservable aOutput) static URLgetConnectorRessource(String aResourceName) Looks for a resource at different places in the following order: (- In the eTenderSuite/WorkServer/res/connector folder (for development version)) - In the eTenderSuite/WorkServer/conf folder (for development version) - In the eTenderSuite/AiConnector/res folder (for dist and development version) - in the classpathstatic org.jdom2.ElementgetInitElementFromFile(String aInitFileName) Parses the Init File .static longgetLastCallMillis(String aPipeID) static final FilegetPipeLineAccessFile(String aPipeID) returns the PipeLineAcessFile to given Pipestatic FWObservableperformChannelReplacements(FWObservable aObservable) performing replacements of internal parameters. commented - not used any morestatic FWObservableprocessPipeLine(FWPipeLinesContainer aContainer, String aPipeLineID, int aNumberOfSteps) Processes the pipeline with the id aPipeLineID.
-
Field Details
-
PARAM_TO_REMOVE_AT_END
Constant Array of Parameters to Keep
-
-
Constructor Details
-
FWPipeLineHelper
public FWPipeLineHelper()
-
-
Method Details
-
appendAccessLog
Constructs a FileWriter object given a File object. String will be written to the end of the file.- Parameters:
aPipeLineID-aString- to be appended
-
getConnectorRessource
Looks for a resource at different places in the following order: (- In the eTenderSuite/WorkServer/res/connector folder (for development version)) - In the eTenderSuite/WorkServer/conf folder (for development version) - In the eTenderSuite/AiConnector/res folder (for dist and development version) - in the classpath- Parameters:
aResourceName-- Returns:
- URL of the connector resource
- Throws:
PipeLineException
-
getLastCallMillis
- Parameters:
aPipeID-- Returns:
- Millis when last call of Pipe was recognized
- Throws:
IOException- if File was not validParseException- if String in File could not be parsed
-
performChannelReplacements
performing replacements of internal parameters. commented - not used any more- Parameters:
aObservable-- Returns:
- FWObservable
-
fillParameterMapFromFormElement
public static void fillParameterMapFromFormElement(Map<String, Object> aParameterMap, org.jdom2.Element aSettingElement) - Parameters:
aParameterMap-aSettingElement-
-
getPipeLineAccessFile
returns the PipeLineAcessFile to given Pipe- Parameters:
aPipeID-- Returns:
- the PipeLineAcessFile to given Pipe
-
processPipeLine
public static FWObservable processPipeLine(FWPipeLinesContainer aContainer, String aPipeLineID, int aNumberOfSteps) throws PipeLineException, DatabaseInUseException Processes the pipeline with the id aPipeLineID.- Parameters:
aContainer-aPipeLineID-aNumberOfSteps-- Returns:
- FWObservable
- Throws:
PipeLineExceptionDatabaseInUseException
-
getInitElementFromFile
Parses the Init File .- Parameters:
aInitFileName-- Returns:
- the Init Element of the given file
-
checkIfExpression
public static boolean checkIfExpression(String aExpression, FWObservable aObservable) throws PipeLineException if parameter if is given in initialize parameters of the processor it is checked here.- Parameters:
aExpression-aObservable-- Returns:
- true, if parameter is given in initialize parameters of the processor, otherwise return false
- Throws:
PipeLineException
-
filterParameters
- Parameters:
aOutput-- Returns:
- FWObservable
-