Class FWPipeLineHelper

java.lang.Object
net.simplace.pipe.control.FWPipeLineHelper

public class FWPipeLineHelper extends Object
Provides different functions of the Impetus Engine.
Author:
Andreas Enders
  • Field Details

    • PARAM_TO_REMOVE_AT_END

      public static final List<String> PARAM_TO_REMOVE_AT_END
      Constant Array of Parameters to Keep
  • Constructor Details

    • FWPipeLineHelper

      public FWPipeLineHelper()
  • Method Details

    • appendAccessLog

      public static void appendAccessLog(String aPipeLineID, String aString)
      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

      public static URL getConnectorRessource(String aResourceName) throws PipeLineException
      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

      public static long getLastCallMillis(String aPipeID) throws IOException, ParseException
      Parameters:
      aPipeID -
      Returns:
      Millis when last call of Pipe was recognized
      Throws:
      IOException - if File was not valid
      ParseException - if String in File could not be parsed
    • performChannelReplacements

      public static FWObservable performChannelReplacements(FWObservable aObservable)
      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

      public static final File getPipeLineAccessFile(String aPipeID)
      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:
      PipeLineException
      DatabaseInUseException
    • getInitElementFromFile

      public static org.jdom2.Element getInitElementFromFile(String aInitFileName)
      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

      public static FWObservable filterParameters(FWObservable aOutput)
      Parameters:
      aOutput -
      Returns:
      FWObservable