public interface FlowContext extends AuditTrailFlowContext
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getDatabaseConnection()
Returns a database connection for an action's use during execution.
|
ErrorResult |
getErrorResult()
Returns status information from the last time an exception was thrown while
this flow context was executing a flow chart.
|
long |
getId()
Returns the flow context ID.
|
Logger |
getLogger()
Returns the Flow Chart Logger, which flow charts use to log messages.
|
java.util.SortedSet<java.lang.String> |
getRaisedSignals()
Returns all signals that have been raised on the current action.
|
java.sql.Connection |
getRawDatabaseConnection()
Returns a database connection for an action's use during execution.
|
java.lang.String |
getStatus()
Returns the status message for this flow context, which is an optional
natural language description that describes the state of this flow context
within the scope of its enveloping flow chart.
|
boolean |
isExpedited()
Indicates whether this flow of execution was expedited.
|
boolean |
isInterrupted()
Returns true if execution has been interrupted by a call to
Engine.interrupt().
|
boolean |
isSignalRaised(java.lang.String signal)
Indicates whether the specified signal has been raised on the current
action.
|
boolean |
isTimedOut()
Indicates whether the current action has timed out.
|
boolean |
isTransient(java.lang.String name)
Indicates if the specified variable name is transient.
|
void |
putTransient(java.lang.String name,
java.lang.Object variable)
Adds a transient variable to the flow context's variable manager, which
will not be persisted to the database.
|
void |
returnTransient()
Indicates that the return value from the execute() method should be treated
as a transient variable, which will not be stored to the database and will
be purged at the next transaction break.
|
void |
returnTransient(boolean enabled)
Sets whether the return value from the execute() method should be treated
as a transient variable, which will not be stored to the database and will
be purged at the next transaction break.
|
void |
sendToAuditTrail(java.lang.String eventName,
java.lang.String eventMessage)
Publishes an audit trail event using the given name and message.
|
void |
setStatus(java.lang.String statusMessage)
Sets the status message for this flow context, which is an optional natural
language description that describes the state of this flow context within
the scope of its enveloping flow chart.
|
java.lang.String |
substitute(java.lang.String value)
Performs variable substitution on a string that may contain Flux variable
substitution expressions.
|
boolean |
willReturnTransient()
Indicates whether the return value from the execute() method will be
treated as a transient variable, which will not be stored to the database
and will be purged at the next transaction break.
|
getActionName, getEngine, getFlowChart, getLastResult, getUsername
java.sql.Connection getDatabaseConnection()
getRawDatabaseConnection()
ErrorResult getErrorResult()
long getId()
Logger getLogger()
java.util.SortedSet<java.lang.String> getRaisedSignals() throws EngineException
EngineException
- If a system error occurs.java.sql.Connection getRawDatabaseConnection()
getDatabaseConnection()
java.lang.String getStatus() throws EngineException
FlowChartElement
. Using this method, actions can provide useful messages
to operators such as status updates.
As an example, the status of the flow chart can be recorded using the
setStatus() method with a message like the following:
The dailyBatch.ech file was not available from client. Waiting for file
to become available.EngineException
- If a system error occurs.boolean isExpedited()
Engine.expedite(String namespace)
boolean isInterrupted()
boolean isSignalRaised(java.lang.String signal) throws EngineException
signal
- The signal of interest.EngineException
- If a system error occurs.Action.setSignalsToMonitor(java.util.Set)
boolean isTimedOut() throws EngineException
EngineException
- If a system error occurs.boolean isTransient(java.lang.String name)
name
- The name of a flow context variable.java.lang.IllegalArgumentException
- If the specified flow context variable
does not exist.putTransient(String, Object)
void putTransient(java.lang.String name, java.lang.Object variable)
name
- The name of the transient variable.variable
- The transient variable.isTransient(String)
,
VariableManager.put(java.lang.String, boolean)
void returnTransient()
void returnTransient(boolean enabled)
enabled
- Whether the return value from the execute() method should be
treated as a transient variablevoid sendToAuditTrail(java.lang.String eventName, java.lang.String eventMessage)
eventName
- The name of the audit trail event to be published.eventMessage
- The accompanying message for the audit trail event to
be published.AuditTrailTrigger
void setStatus(java.lang.String statusMessage)
FlowChartElement
. Using this method, actions can provide useful messages
to operators such as status updates.
As an example, the status of the flow chart can be recorded using the
setStatus() method with a message like the following:
The dailyBatch.ech file was not available from client. Waiting for file
to become available.statusMessage
- The status message for this flow context.java.lang.String substitute(java.lang.String value) throws EngineException
value
- The string on which to perform variable substitution.EngineException
- If an error occurs while substituting the given
string.boolean willReturnTransient()
© 2000-2025 Flux Corporation. All rights reserved.