public interface ProcessAction extends Action, AgentAction
Flow Context Variable | Field | Java Type | Description |
---|---|---|---|
RESULT | result | int | The process's exit code, as returned by the operating system, if the process executed synchronously. |
RESULT | stderr | java.lang.String | The standard error (stderr) from the completed process, if the process executed synchronously. |
RESULT | stdout | java.lang.String | The standard output (stdout) from the completed process, if the process executed synchronously. |
Modifier and Type | Interface and Description |
---|---|
static class |
ProcessAction.ProcessActionResult
The result when a process finishes executing.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getArguments()
Returns command line arguments for the native process.
|
boolean |
getAsynchronous()
Returns whether the native process runs asynchronously, in the background.
|
java.lang.String |
getCommand()
Returns the command line for the native process.
|
java.util.Properties |
getCommandProperties()
Returns substitution properties that are referenced by the process command
line.
|
boolean |
getDestroyOnInterrupt()
Returns whether this process is destroyed if the current flow chart is
interrupted.
|
boolean |
getDestroyOnSignal()
Returns whether this process is destroyed if this process action receives a
signal.
|
boolean |
getDestroyOnTimeout()
Returns whether this process is destroyed if this process takes too long to
execute.
|
java.util.Properties |
getEnvironment()
Returns the environment properties used by the native process.
|
java.lang.String |
getErrorCondition()
Returns the expression that is tested to detect whether a process failed.
|
java.lang.String |
getStderrFile()
Returns the file name where the process's stderr (standard error) is
redirected, if not otherwise set on the command line.
|
java.lang.String |
getStdinFile()
Returns the file name where the process's stdin (standard in) is
redirected, if not otherwise set on the command line.
|
java.lang.String |
getStdoutFile()
Returns the file name where the process's stdout (standard out) is
redirected, if not otherwise set on the command line.
|
java.lang.String |
getWorkingDirectory()
Returns the starting directory where the native process runs.
|
boolean |
isAppendToOutputFile()
Indicates whether this process's output is written to the end of the
configured stdout and stderr files, if not otherwise set on the command
line.
|
void |
setAppendToOutputFile(boolean enabled)
Sets whether this process's output is written to the end of the configured
stdout and stderr files, if not otherwise set on the command line.
|
void |
setArguments(java.util.List arguments)
Sets command line arguments for the native process.
|
void |
setAsynchronous(boolean asynchronous)
Sets whether the native process runs asynchronously, in the background.
|
void |
setCommand(java.lang.String command)
Sets the command line for the native process.
|
void |
setCommandProperties(java.util.Properties commandProperties)
Sets substitution properties that are referenced by the process command
line.
|
void |
setDestroyOnInterrupt(boolean destroyOnInterrupt)
Sets whether this process is destroyed if the current flow chart is
interrupted.
|
void |
setDestroyOnSignal(boolean destroyOnSignal)
Sets whether this process is destroyed if this process action receives a
signal.
|
void |
setDestroyOnTimeout(boolean destroyOnTimeout)
Sets whether this process is destroyed if this process takes too long to
execute.
|
void |
setEnvironment(java.util.Properties environment)
Sets the environment properties used by the native process.
|
void |
setErrorCondition(java.lang.String errorCondition)
Sets the expression that is tested to detect whether a process failed.
|
void |
setStderrFile(java.lang.String stderr)
Sets the file name where the process's stderr (standard error) is
redirected, if not otherwise set on the command line.
|
void |
setStdinFile(java.lang.String stdin)
Sets the file name where the process's stdin (standard in) is redirected,
if not otherwise set on the command line.
|
void |
setStdoutFile(java.lang.String stdout)
Sets the file name where the process's stdout (standard out) is redirected,
if not otherwise set on the command line.
|
void |
setWorkingDirectory(java.lang.String startingDirectory)
Sets the starting directory where the native process runs.
|
addFlow, addFlow, addSignalFlow, clone, execute, getDescription, getFlows, getHiddenVariableNames, getJoinExpression, getName, getPostscript, getPostscriptLanguage, getPrescript, getPrescriptLanguage, getResultInfo, getSignalsToMonitor, getTimeoutBusinessInterval, getTimeoutBusinessIntervalNamespace, getTimeoutExpression, getVariableManager, isEndOfRun, isJoinPoint, isSkippable, isStartAction, isStartOfRun, isTransactionBreak, removeFlow, reset, setDescription, setElseFlow, setEndOfRun, setErrorFlow, setErrorFlowWithoutRollback, setErrorFlowWithRollback, setJoinExpression, setJoinPoint, setName, setPostscript, setPostscriptLanguage, setPrescript, setPrescriptLanguage, setSignalsToMonitor, setSkippable, setStartAction, setStartOfRun, setTimeoutBusinessInterval, setTimeoutBusinessIntervalNamespace, setTimeoutExpression, setTimeoutFlow, setTransactionBreak, verify, verifyOnClient
getRuntimeDataMap, setRuntimeDataMap
getAgentPool, setAgentPool
boolean isAppendToOutputFile()
java.util.List<java.lang.String> getArguments()
boolean getAsynchronous()
java.lang.String getCommand()
getCommandProperties()
,
setCommandProperties(java.util.Properties)
java.util.Properties getCommandProperties()
getCommand()
,
setCommand(java.lang.String)
boolean getDestroyOnInterrupt()
boolean getDestroyOnSignal()
boolean getDestroyOnTimeout()
java.util.Properties getEnvironment()
java.lang.String getErrorCondition()
getAsynchronous()
,
setAsynchronous(boolean)
java.lang.String getStderrFile()
java.lang.String getStdinFile()
java.lang.String getStdoutFile()
java.lang.String getWorkingDirectory()
void setAppendToOutputFile(boolean enabled)
enabled
- Whether this process's output is written to the end of the
configured stdout and stderr files.void setArguments(java.util.List arguments)
arguments
- Command line arguments for the native process.void setAsynchronous(boolean asynchronous)
asynchronous
- Whether the native process runs asynchronously, in the
background.void setCommand(java.lang.String command)
command
- The command line for the native process.java.lang.IllegalArgumentException
- If the command is null or empty.getCommandProperties()
,
setCommandProperties(java.util.Properties)
void setCommandProperties(java.util.Properties commandProperties)
commandProperties
- Substitution properties that are referenced by the
process command line.getCommand()
,
setCommand(java.lang.String)
void setDestroyOnInterrupt(boolean destroyOnInterrupt)
destroyOnInterrupt
- Whether this process is destroyed if the current
flow chart is interrupted.void setDestroyOnSignal(boolean destroyOnSignal)
destroyOnSignal
- Whether this process is destroyed if this process
action receives a signal.void setDestroyOnTimeout(boolean destroyOnTimeout)
destroyOnTimeout
- Whether this process is destroyed if this process
takes too long to execute.void setEnvironment(java.util.Properties environment)
environment
- The environment used by the native process.void setErrorCondition(java.lang.String errorCondition)
errorCondition
- The expression that is tested to detect whether a
process failed. A null or empty error condition
indicates that the error condition is undefined.getAsynchronous()
,
setAsynchronous(boolean)
void setStderrFile(java.lang.String stderr)
stderr
- The file name where the process's stderr redirected.void setStdinFile(java.lang.String stdin)
stdin
- The file name where the process's stdin redirected.void setStdoutFile(java.lang.String stdout)
stdout
- The file name where the process's stdout is redirected.void setWorkingDirectory(java.lang.String startingDirectory)
startingDirectory
- The starting directory where the native process
runs.© 2000-2025 Flux Corporation. All rights reserved.