Class XMLChainBuilder<T>

    • Constructor Detail

      • XMLChainBuilder

        public XMLChainBuilder​(String xmlFilename)
    • Method Detail

      • executeAsProcess

        public Optional<String> executeAsProcess​(String startCommand,
                                                 T context)
        Description copied from interface: ProcessCommand
        Execute a command as a process. The result is the decision which process step should be executed next.
        Specified by:
        executeAsProcess in interface ProcessCommand<T>
        Parameters:
        startCommand - The command the process should start with.
        context - The context to work with.
        Returns:
        The next process step to execute. Null stops the process.
      • executeAsProcess

        public Optional<String> executeAsProcess​(T context)
        Description copied from interface: ProcessCommand
        Execute a command as a process. The result is the decision which process step should be executed next.
        Specified by:
        executeAsProcess in interface ProcessCommand<T>
        Parameters:
        context - The context to work with.
        Returns:
        The next process step to execute. Null stops the process.
      • setProcessID

        public void setProcessID​(String processID)
        Description copied from interface: ProcessCommand
        Sets the process ID of the command
        Specified by:
        setProcessID in interface ProcessCommand<T>
        Parameters:
        processID - Sets the process id of this process command.
      • executeCommand

        public CommandTransition executeCommand​(T parameterObject)
        Description copied from interface: Command
        Executes the command. The command can have the result SUCCESS if everything is fine or FAILURE if an error occurred.
        Specified by:
        executeCommand in interface Command<T>
        Parameters:
        parameterObject - The parameter object to pass.
        Returns:
        FAILURE if something went wrong, SUCCESS otherwise.
      • executeCommandAsChain

        public CommandTransition executeCommandAsChain​(T parameterObject)
        Specified by:
        executeCommandAsChain in interface ChainCommand<T>
        Parameters:
        parameterObject - The parameter object to pass.
        Returns:
        SUCCESS is the next chain should overtake, ABORT otherwise.