public interface Action extends RuntimeDataMap, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
Flow |
addFlow(Action action)
When an action finishes executing, this action is executed next.
|
Flow |
addFlow(Action action,
java.lang.String condition)
When an action finishes executing, this action is executed next if its
condition evaluates to true.
|
Flow |
addSignalFlow(Action action,
java.lang.String signal)
If the specified signal is raised, the given action is executed next.
|
java.lang.Object |
clone()
Makes a deep clone of this action, except that all inbound and outbound
flows are removed from the returned action.
|
java.lang.Object |
execute(FlowContext flowContext)
Called internally by an engine when an action, or trigger, is executed.
|
java.lang.String |
getDescription()
Returns a description of this action meant for human consumption.
|
java.util.Set<Flow> |
getFlows()
Returns the set of all outgoing flows from this action.
|
java.util.Set<java.lang.String> |
getHiddenVariableNames()
Returns the names of all persistent variables for this action that are
hidden.
|
java.lang.String |
getJoinExpression()
Returns a join expression that specifies the conditions that must be met
before a join point will fire.
|
java.lang.String |
getName()
Returns the name for this action.
|
java.lang.String |
getPostscript()
Returns the script that is executed at the end of this action.
|
java.lang.String |
getPostscriptLanguage()
Returns the scripting language in which the postscript is written.
|
java.lang.String |
getPrescript()
Returns the script that is executed at the beginning of this action.
|
java.lang.String |
getPrescriptLanguage()
Returns the scripting language in which the prescript is written.
|
java.lang.Class |
getResultInfo()
Returns the class of the result object returned from this action's execute
method.
|
java.util.Set<java.lang.String> |
getSignalsToMonitor()
Returns the signals that this action monitors.
|
AllowableBusinessInterval |
getTimeoutBusinessInterval()
Deprecated.
Use Action.getTimeoutBusinessIntervalNamespace. Deprecated in
Flux 8.0. Will be removed in a future release.
|
java.lang.String |
getTimeoutBusinessIntervalNamespace()
Returns the repository namespace to the business interval that is used to calculate the
timeout expression.
|
java.lang.String |
getTimeoutExpression()
Returns a time expression that specifies the elapsed time that may pass
before this action times out.
|
VariableManager |
getVariableManager()
Returns the variable manager for this action.
|
boolean |
isEndOfRun()
Indicates whether this action is the end of a flow chart run.
|
boolean |
isJoinPoint()
Indicates whether this action is a join point.
|
boolean |
isSkippable()
Indicates whether this action can be skipped if it generated an exception
that caused the flow chart to enter the FAILED state.
|
boolean |
isStartAction()
Indicates whether this action is a starting point for the encapsulating
flow chart.
|
boolean |
isStartOfRun()
Indicates whether this action is the start of a flow chart run.
|
boolean |
isTransactionBreak()
Indicates whether this action is a transaction break.
|
boolean |
removeFlow(Flow flow)
Removes the specified flow from this action.
|
void |
reset()
Resets this action's attributes to their original values.
|
void |
setDescription(java.lang.String comment)
Sets a description of this action meant for human consumption.
|
Flow |
setElseFlow(Action action)
Sets the next action to execute if all other flow conditions are not
satisfied at runtime.
|
void |
setEndOfRun(boolean enabled)
Sets whether this action is an end point for a flow chart run.
|
Flow |
setErrorFlow(Action action)
If this action ends with an error, sets the next action to execute; the
transaction will NOT be rolled back as this error flow executes and
before the error action executes.
|
Flow |
setErrorFlowWithoutRollback(Action action)
If this action ends with an error, sets the next action to execute; the
transaction will NOT be rolled back as execution continues along
this error flow.
|
Flow |
setErrorFlowWithRollback(Action action)
If this action ends with an error, sets the next action to execute; the
transaction will be rolled back as this error flow executes and before the
error action executes.
|
void |
setJoinExpression(java.lang.String joinExpression)
Sets a join expression that specifies the conditions that must be met
before a join point will fire.
|
void |
setJoinPoint(boolean enabled)
Indicates whether this action is a join point.
|
void |
setName(java.lang.String name)
Sets the name of this action, which must be unique within a flow chart.
|
void |
setPostscript(java.lang.String postscript)
Sets the script that is executed at the end of this action.
|
void |
setPostscriptLanguage(java.lang.String postscriptLanguage)
Sets the scripting language in which the postscript is written.
|
void |
setPrescript(java.lang.String prescript)
Sets the script that is executed at the beginning of this action.
|
void |
setPrescriptLanguage(java.lang.String prescriptLanguage)
Sets the scripting language in which the prescript is written.
|
void |
setSignalsToMonitor(java.util.Set<java.lang.String> signals)
Sets the signals that this action monitors.
|
void |
setSkippable(boolean enabled)
Indicates whether this action can be skipped if it generated an exception
that caused the flow chart to enter the FAILED state.
|
void |
setStartAction(boolean enabled)
Sets whether this action is a starting point for the encapsulating flow
chart.
|
void |
setStartOfRun(boolean enabled)
Sets whether this action is a starting point for a flow chart run.
|
void |
setTimeoutBusinessInterval(AllowableBusinessInterval businessInterval)
Deprecated.
Use Action.setTimeoutBusinessIntervalNamespace. Deprecated in
Flux 8.0. Will be removed in a future release.
|
void |
setTimeoutBusinessIntervalNamespace(java.lang.String businessIntervalNamespace)
Sets the repository namespace to the business interval that is used to calculate the
timeout expression.
|
void |
setTimeoutExpression(java.lang.String timeoutExpression)
Returns a time expression that specifies the elapsed time that may pass
before this action times out.
|
Flow |
setTimeoutFlow(Action action)
Sets the next action to execute if this action times out.
|
void |
setTransactionBreak(boolean enabled)
Sets whether this action is a transaction break.
|
void |
verify()
Indicates if this action was configured correctly.
|
void |
verifyOnClient()
Indicates if this action is configured correctly on or in a client, not
necessarily on or in a server.
|
getRuntimeDataMap, setRuntimeDataMap
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- If this action could not be cloned
deeply.Flow addFlow(Action action)
action
- The next action to execute.Flow addFlow(Action action, java.lang.String condition)
action
- The next action to execute if its condition is satisfied.condition
- The condition governing whether this flow is followed.Flow addSignalFlow(Action action, java.lang.String signal)
action
- The next action to execute if signal is raised.signal
- The signal governing whether this flow is followed.java.lang.Object execute(FlowContext flowContext) throws java.lang.Exception
flowContext
- The context of the flow chart thus far.java.lang.Exception
- If an action indicates that an error has occurred during
its execution.java.lang.String getDescription()
java.util.Set<Flow> getFlows()
java.util.Set<java.lang.String> getHiddenVariableNames()
java.lang.String getJoinExpression()
java.lang.String getName()
java.lang.String getPostscript()
java.lang.String getPostscriptLanguage()
Configuration.SCRIPTING_LANGUAGES
java.lang.String getPrescript()
java.lang.String getPrescriptLanguage()
Configuration.SCRIPTING_LANGUAGES
java.lang.Class getResultInfo()
java.util.Set<java.lang.String> getSignalsToMonitor()
FlowContext.isSignalRaised(String)
@Deprecated AllowableBusinessInterval getTimeoutBusinessInterval()
java.lang.String getTimeoutBusinessIntervalNamespace()
java.lang.String getTimeoutExpression()
VariableManager getVariableManager()
boolean isEndOfRun()
FlowChartRun
boolean isJoinPoint()
boolean isSkippable()
boolean isStartAction()
boolean isStartOfRun()
FlowChartRun
boolean isTransactionBreak()
boolean removeFlow(Flow flow)
flow
- The flow to be removed from this action.void reset()
void setDescription(java.lang.String comment)
comment
- A description of this action meant for human consumption.Flow setElseFlow(Action action)
action
- The next action to execute if all other flow conditions are
not satisfied at runtime.void setEndOfRun(boolean enabled)
enabled
- Whether this action is an end point for a flow chart run.FlowChartRun
Flow setErrorFlow(Action action)
action
- The error action to execute next.setErrorFlowWithoutRollback(Action)
Flow setErrorFlowWithoutRollback(Action action)
action
- The error action to execute next.Flow setErrorFlowWithRollback(Action action)
action
- The error action to execute next.void setJoinExpression(java.lang.String joinExpression)
joinExpression
- A join expression that specifies the conditions that
must be met before a join point will fire.java.lang.IllegalArgumentException
- If the join expression is an empty string
or otherwise containing an illegal form.void setJoinPoint(boolean enabled)
enabled
- Whether this action is a join point.void setName(java.lang.String name)
name
- The name of this action.void setPostscript(java.lang.String postscript)
postscript
- The script that is executed at the end of this action. A
null script indicates that no script will be executed.void setPostscriptLanguage(java.lang.String postscriptLanguage)
postscriptLanguage
- The scripting language in which the postscript is
written.void setPrescript(java.lang.String prescript)
prescript
- The script that is executed at the beginning of this
action. A null script indicates that no script will be
executed.void setPrescriptLanguage(java.lang.String prescriptLanguage)
prescriptLanguage
- The scripting language in which the prescript is
written.void setSignalsToMonitor(java.util.Set<java.lang.String> signals)
signals
- The signals that this action monitors. A signal is a
non-null, non-empty string.java.lang.IllegalArgumentException
- If signals is null, if signals contains a
null value, or if signals contains an
empty string.FlowContext.isSignalRaised(String)
void setSkippable(boolean enabled)
enabled
- Whether this action can be skipped if it generated an
exception which caused the flow chart to enter the FAILED
state.void setStartAction(boolean enabled)
enabled
- Whether this action is a starting point for the
encapsulating flow chart.void setStartOfRun(boolean enabled)
enabled
- Whether this action is a starting point for a flow chart
run.FlowChartRun
@Deprecated void setTimeoutBusinessInterval(AllowableBusinessInterval businessInterval)
businessInterval
- The business interval that is used to calculate the
timeout expression.void setTimeoutBusinessIntervalNamespace(java.lang.String businessIntervalNamespace)
businessIntervalNamespace
- The repository namespace to the business interval that is used to calculate the
timeout expression.void setTimeoutExpression(java.lang.String timeoutExpression) throws java.lang.IllegalArgumentException
timeoutExpression
- A time expression that specifies the elapsed time
that may pass before this action times out. If the
time expression is null, the action never times
out.java.lang.IllegalArgumentException
- If timeoutExpression is the empty string,
or if it is not a valid time expression.Flow setTimeoutFlow(Action action)
action
- The next action to execute if this action times out.void setTransactionBreak(boolean enabled)
enabled
- Whether this action is a transaction break.void verify() throws EngineException
EngineException
- If this action was not configured correctly.void verifyOnClient() throws EngineException
EngineException
- If this action is not configured correctly on or in
a client.© 2000-2025 Flux Corporation. All rights reserved.