Class CommandWorkflowParser


  • public class CommandWorkflowParser
    extends Object
    This class allow parse the workflow file.
    Since:
    1.0
    Author:
    Laurent Jourdren
    • Field Detail

      • VERSION_CONSTANT_NAME

        public static final String VERSION_CONSTANT_NAME
        Version constant name.
      • BUILD_NUMBER_CONSTANT_NAME

        public static final String BUILD_NUMBER_CONSTANT_NAME
        Build number constant name.
      • BUILD_DATE_CONSTANT_NAME

        public static final String BUILD_DATE_CONSTANT_NAME
        Build date constant name.
      • AVAILABLE_PROCESSORS_CONSTANT_NAME

        public static final String AVAILABLE_PROCESSORS_CONSTANT_NAME
        Available processor constant name.
      • DESIGN_FILE_PATH_CONSTANT_NAME

        public static final String DESIGN_FILE_PATH_CONSTANT_NAME
        Design file path constant name.
        See Also:
        Constant Field Values
      • WORKFLOW_FILE_PATH_CONSTANT_NAME

        public static final String WORKFLOW_FILE_PATH_CONSTANT_NAME
        Parameters file path constant name.
        See Also:
        Constant Field Values
      • OUTPUT_PATH_CONSTANT_NAME

        public static final String OUTPUT_PATH_CONSTANT_NAME
        Output path constant name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CommandWorkflowParser

        public CommandWorkflowParser​(DataFile file)
                              throws IOException
        Public constructor.
        Parameters:
        file - the workflow file
        Throws:
        IOException - if an error occurs while opening the file
      • CommandWorkflowParser

        public CommandWorkflowParser​(InputStream is)
        Public constructor.
        Parameters:
        is - Input stream
    • Method Detail

      • addConstants

        public void addConstants​(ExecutorArguments arguments)
                          throws EoulsanException
        Add job arguments information to constants.
        Parameters:
        arguments - job arguments
        Throws:
        EoulsanException - if an error occurs while evaluating the constant
      • addConstant

        public void addConstant​(String constantName,
                                String constantValue)
                         throws EoulsanException
        Add a constant.
        Parameters:
        constantName - constant Name
        constantValue - constant value
        Throws:
        EoulsanException - if an error occurs while evaluating the constant
      • addConstant

        public void addConstant​(String constantName,
                                String constantValue,
                                boolean evaluateValue)
                         throws EoulsanException
        Add a constant.
        Parameters:
        constantName - constant Name
        constantValue - constant value
        evaluateValue - allow evaluate the value of the constant and start an external process to do this
        Throws:
        EoulsanException - if an error occurs while evaluating the constant