Package org.mwolff.command.process
Class DefaultEndCommand
- java.lang.Object
-
- org.mwolff.command.AbstractDefaultCommand<T>
-
- org.mwolff.command.chain.AbstractDefaultChainCommand<T>
-
- org.mwolff.command.process.AbstractDefaultProcessCommand<GenericParameterObject>
-
- org.mwolff.command.process.DefaultEndCommand
-
- All Implemented Interfaces:
ChainCommand<GenericParameterObject>
,Command<GenericParameterObject>
,ProcessCommand<GenericParameterObject>
public class DefaultEndCommand extends AbstractDefaultProcessCommand<GenericParameterObject>
-
-
Field Summary
-
Fields inherited from class org.mwolff.command.process.AbstractDefaultProcessCommand
processID, transitionList
-
Fields inherited from interface org.mwolff.command.process.ProcessCommand
END
-
-
Constructor Summary
Constructors Constructor Description DefaultEndCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
executeAsProcess(String startCommand, GenericParameterObject context)
Execute a command as a process.Optional<String>
executeAsProcess(GenericParameterObject context)
Execute a command as a process.-
Methods inherited from class org.mwolff.command.process.AbstractDefaultProcessCommand
addTransition, findNext, getProcessID, getTransitionList, setProcessID
-
Methods inherited from class org.mwolff.command.chain.AbstractDefaultChainCommand
executeCommandAsChain
-
Methods inherited from class org.mwolff.command.AbstractDefaultCommand
executeCommand
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mwolff.command.chain.ChainCommand
executeCommandAsChain
-
Methods inherited from interface org.mwolff.command.Command
executeCommand
-
-
-
-
Method Detail
-
executeAsProcess
public Optional<String> executeAsProcess(String startCommand, GenericParameterObject 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 interfaceProcessCommand<GenericParameterObject>
- Overrides:
executeAsProcess
in classAbstractDefaultProcessCommand<GenericParameterObject>
- 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(GenericParameterObject context)
Description copied from interface:ProcessCommand
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.
-
-