Class AbstractDefaultProcessCommand<T>

    • Constructor Detail

      • AbstractDefaultProcessCommand

        public AbstractDefaultProcessCommand()
      • AbstractDefaultProcessCommand

        public AbstractDefaultProcessCommand​(String processID)
    • Method Detail

      • findNext

        public Optional<String> findNext​(String next)
        Description copied from interface: ProcessCommand
        Finds the next command with the processID next.
        Specified by:
        findNext in interface ProcessCommand<T>
        Parameters:
        next - The process id to find.
        Returns:
        The process id of the next command
      • 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.
      • 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.