Interface ProcessCommand<T>

    • Method Detail

      • addTransition

        default void addTransition​(Transition transition)
      • executeAsProcess

        Optional<String> executeAsProcess​(String startCommand,
                                          T context)
        Execute a command as a process. The result is the decision which process step should be executed next.
        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

        Optional<String> executeAsProcess​(T context)
        Execute a command as a process. The result is the decision which process step should be executed next.
        Parameters:
        context - The context to work with.
        Returns:
        The next process step to execute. Null stops the process.
      • findNext

        default Optional<String> findNext​(String next)
        Finds the next command with the processID next.
        Parameters:
        next - The process id to find.
        Returns:
        The process id of the next command
      • getProcessID

        String getProcessID()
        Gets the process ID of the command.
        Returns:
        The process ID
      • setProcessID

        void setProcessID​(String processID)
        Sets the process ID of the command
        Parameters:
        processID - Sets the process id of this process command.