|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlowChart
Represents a set of actions (and triggers) and the flows between them. Any changes made to this object, or objects reachable from this object, do not take effect until this object passed to an engine. Note that the first action (or trigger) created from a flow chart is automatically set as a start action. A start action marks the beginning of the flow chart. To set additional actions as start actions, call Action.setStartAction() on appropriate actions (or triggers) in this flow chart.
Method Summary | |
---|---|
java.lang.Object |
clone()
|
Action |
getAction(java.lang.String name)
Returns the existing action with the given name. |
java.util.Set<Action> |
getActions()
Returns all actions in the flow chart. |
java.util.Set<java.lang.String> |
getAllSignals()
Returns all signals that are raised, cleared, monitored, or specified as a flow condition in this flow chart. |
java.util.Date |
getDeadline()
Returns the date when this flow chart or denoted flow chart run should finish execution. |
java.lang.String |
getDeadlineTimeExpression()
Returns the time expression used to set the deadline for this flow chart. |
java.lang.String |
getDeadlineWindow()
Returns the time expression that indicates when to publish the DeadlineApproachingEvent to the audit trail. |
java.lang.String |
getDescription()
Returns a description of this flow chart meant for human consumption. |
FlowContextStatus |
getFlowContextStatus()
Returns one of the running flow context statuses from a running flow chart. |
java.util.Set<FlowContextStatus> |
getFlowContextStatuses()
Returns the running flow context statuses from a running flow chart. |
java.util.Set<Flow> |
getFlows()
Returns the set of all flows in this flow chart. |
java.lang.String |
getListenerClasspath()
Returns the listener classpath for this flow chart, which is used to load listener classes for Java Action and Dynamic Java Action. |
java.lang.String |
getName()
Returns the name of this flow chart. |
java.lang.Integer |
getPriority()
Returns the priority of this flow chart, if explicitly set, which overrides any priority set in the runtime configuration. |
java.lang.String |
getRunAsUser()
Returns the username under whose security context this flow chart executes; applicable for secure Flux engines only. |
VariableManager |
getVariableManager()
Returns the variable manager for this flow chart. |
boolean |
isPaused()
Determines whether the flow chart is paused. |
ActionPropertyTarget |
makeActionPropertyTarget(java.lang.String name)
Creates an action property target, for use in runtime data mapping. |
AuditTrailTrigger |
makeAuditTrailTrigger(java.lang.String name)
Creates an audit trail trigger, which waits for an audit trail event to be recorded. |
ConsoleAction |
makeConsoleAction(java.lang.String name)
Creates a console action, which can print data to the console. |
DatabaseConditionAction |
makeDatabaseConditionAction(java.lang.String name)
Creates a Database Condition Action, which queries a database to test whether certain conditions are satisfied within the database. |
DatabaseConditionTrigger |
makeDatabaseConditionTrigger(java.lang.String name)
Creates a Database Condition Trigger, which periodically queries a database to test whether certain conditions are satisfied within the database. |
DatabaseQueryAction |
makeDatabaseQueryAction(java.lang.String name)
Creates a Database Query Action, which executes queries in a database. |
DatabaseStoredProcedureAction |
makeDatabaseStoredProcedureAction(java.lang.String name)
Creates a Database Stored Procedure Action, which calls stored procedures in a database. |
DatabaseUpdateAction |
makeDatabaseUpdateAction(java.lang.String name)
Creates an Database Update Action, which executes statements in a database. |
Decision |
makeDecision(java.lang.String name)
Creates a Decision node, which makes an explicit decision, or conditional branch, in a flow chart. |
DelayTrigger |
makeDelayTrigger(java.lang.String name)
Creates a delay trigger, which pauses for a while before firing. |
DynamicJavaAction |
makeDynamicJavaAction(java.lang.String name)
Creates a dynamic Java action, which can execute arbitrary Java classes. |
DynamicRmiAction |
makeDynamicRmiAction(java.lang.String name)
Creates a dynamic RMI action, which can execute arbitrary methods on remote Java objects. |
ErrorAction |
makeErrorAction(java.lang.String name)
Creates an error action, which throws an exception and forces error processing to occur. |
java.lang.Object |
makeFactory(java.lang.String name)
Creates a custom factory for creating custom actions and triggers. |
FileFactory |
makeFileFactory()
Creates a file factory, which can create file actions and triggers. |
FlowChartAction |
makeFlowChartAction(java.lang.String name)
Creates a Flow Chart Action, which can export a new flow chart to the engine. |
FlowChartSource |
makeFlowChartSource(java.lang.String name)
Creates a flow chart variable source for use in runtime data mapping. |
FlowChartTarget |
makeFlowChartTarget(java.lang.String name)
Creates a flow chart variable target for use in runtime data mapping. |
FlowChartTrigger |
makeFlowChartTrigger(java.lang.String name)
Creates a Flow Chart Trigger, which waits for other flow charts to finish before firing. |
FlowContextSource |
makeFlowContextSource(java.lang.String name)
Creates a flow context source, for use in runtime data mapping. |
FlowContextTarget |
makeFlowContextTarget(java.lang.String name)
Creates a flow context target, for use in runtime data mapping. |
ForEachCollectionElementAction |
makeForEachCollectionElementAction(java.lang.String name)
Creates a for each collection element action, which makes each element in a collection available for individual processing in a flow chart. |
ForEachNumberAction |
makeForEachNumberAction(java.lang.String name)
Creates a for each number action, which counts numbers that fall within a range of numbers. |
J2eeFactory |
makeJ2eeFactory()
Creates a J2EE factory, which can create J2EE triggers and actions. |
JavaAction |
makeJavaAction(java.lang.String name)
Creates a Java Action, which can execute arbitrary Java classes. |
Join |
makeJoin(java.lang.String name)
Creates a Join node, which merges multiple incoming flows into a single flow. |
ManualTrigger |
makeManualTrigger(java.lang.String name)
Creates a manual trigger, which fires when expedited. |
NotificationFactory |
makeNotificationFactory()
Creates a notification factory, which can create notification triggers and actions. |
NullAction |
makeNullAction(java.lang.String name)
Creates an action that does nothing. |
ProcessAction |
makeProcessAction(java.lang.String name)
Creates a process action, which executes native processes and command line programs. |
RegularExpressionAction |
makeRegularExpressionAction(java.lang.String name)
Creates a Regular Expression Action, which can determine if a string or the contents of a file match a regular expression and optionally replace matches. |
RestAction |
makeRestAction(java.lang.String name)
Creates a new rest action, which can invoke REST services. |
RmiAction |
makeRmiAction(java.lang.String name)
Creates an RMI action, which executes a method on a remote object. |
RuntimeConfigurationSource |
makeRuntimeConfigurationSource(java.lang.String name)
Creates a runtime configuration source, for use in runtime data mapping. |
Split |
makeSplit(java.lang.String name)
Creates a Split node, which activates multiple outgoing flows in parallel. |
TimerTrigger |
makeTimerTrigger(java.lang.String name)
Creates a new timer trigger, which automatically fires at specified times. |
WebServiceAction |
makeWebService(java.lang.String name)
Creates a new web service action, which can invoke web services. |
void |
pause()
Pauses this flow chart, that is, pauses all execution flow contexts in this flow chart. |
boolean |
removeAction(java.lang.String actionName)
Removes the specified action from this flow chart. |
void |
reset()
Resets this flow chart's attributes to their original values. |
void |
resume()
Resumes this flow chart after a previous pause. |
void |
setDeadline(java.util.Date deadline)
Sets the date when this flow chart or denoted flow chart run should finish execution. |
void |
setDeadline(java.lang.String timeExpression)
Sets the deadline for this flow chart or denoted flow chart run using a time expression. |
void |
setDeadlineWindow(java.lang.String timeExpression)
Sets a relative time expression which specifies when to publish the DeadlineApproachingEvent to the audit trail, expression is relative to the deadline date. |
void |
setDescription(java.lang.String description)
Sets a description of this flow chart meant for human consumption. |
void |
setListenerClasspath(java.lang.String classpath)
Sets the listener classpath for this flow chart, which is used to load listener classes for Java Action and Dynamic Java Action. |
void |
setName(java.lang.String name)
Sets the name of this flow chart in the flow chart namespace. |
void |
setPriority(java.lang.Integer priority)
Sets the priority of this flow chart, which overrides any priority set in the runtime configuration. |
void |
setRunAsUser(java.lang.String runAsUser)
Sets the username under whose security context this flow chart executes; applicable for secure Flux engines only. |
void |
verify()
Indicates whether this flow chart and all the actions within this flow chart are configured correctly. |
java.util.SortedMap |
verifyAll()
Finds all actions within this flow chart, including the flow chart itself, which failed verification and returns all of their error messages, sorted by action name. |
java.util.SortedMap |
verifyAllOnClient()
Finds all actions within this flow chart, including the flow chart itself, which failed client verification and returns all of their error messages, sorted by action name. |
void |
verifyOnClient()
Indicates whether this flow chart and all the actions within this flow chart are configured correctly on or in a client, not necessarily on or in a server. |
Method Detail |
---|
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Action getAction(java.lang.String name)
name
- The name of the action to find.
java.lang.IllegalArgumentException
- If an action with the given name does not
exist.java.util.Set<Action> getActions()
java.util.Set<java.lang.String> getAllSignals()
java.util.Date getDeadline()
java.lang.String getDeadlineTimeExpression()
java.lang.String getDeadlineWindow()
DeadlineApproachingEvent
java.lang.String getDescription()
FlowContextStatus getFlowContextStatus()
java.util.Set<FlowContextStatus> getFlowContextStatuses()
java.util.Set<Flow> getFlows()
java.lang.String getListenerClasspath()
RuntimeConfigurationNode.LISTENER_CLASSPATH
java.lang.String getName()
java.lang.Integer getPriority()
RuntimeConfigurationNode.PRIORITY
java.lang.String getRunAsUser()
RuntimeConfigurationNode.RUN_AS_USER
VariableManager getVariableManager()
boolean isPaused()
ActionPropertyTarget makeActionPropertyTarget(java.lang.String name)
name
- The name of the runtime data mapping.
AuditTrailTrigger makeAuditTrailTrigger(java.lang.String name)
name
- The name of the trigger.
java.lang.IllegalArgumentException
- If name is already used.ConsoleAction makeConsoleAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.DatabaseConditionAction makeDatabaseConditionAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.makeDatabaseConditionTrigger(String)
DatabaseConditionTrigger makeDatabaseConditionTrigger(java.lang.String name)
name
- The name of the trigger.
java.lang.IllegalArgumentException
- If name is already used.makeDatabaseConditionAction(String)
DatabaseQueryAction makeDatabaseQueryAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.DatabaseStoredProcedureAction makeDatabaseStoredProcedureAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.DatabaseUpdateAction makeDatabaseUpdateAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.Decision makeDecision(java.lang.String name)
name
- The name of the Decision.
java.lang.IllegalArgumentException
- If name is already used.DelayTrigger makeDelayTrigger(java.lang.String name)
name
- The name of the trigger.
java.lang.IllegalArgumentException
- If name is already used.DynamicJavaAction makeDynamicJavaAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.DynamicRmiAction makeDynamicRmiAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.ErrorAction makeErrorAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.java.lang.Object makeFactory(java.lang.String name) throws EngineException
FACTORY_NAME=com.anycompany.MyCustomFactoryThe custom factory class will be instantiated and returned to the caller.
name
- The name of the factory.
EngineException
- If a system error occurs.FileFactory makeFileFactory()
FlowChartAction makeFlowChartAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.FlowChartTrigger makeFlowChartTrigger(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.FlowChartSource makeFlowChartSource(java.lang.String name)
name
- The name of the flow chart variable source.
FlowChartTarget makeFlowChartTarget(java.lang.String name)
name
- The name of the flow chart variable target.
FlowContextSource makeFlowContextSource(java.lang.String name)
name
- The name of the runtime data mapping.
FlowContextTarget makeFlowContextTarget(java.lang.String name)
name
- The name of the runtime data mapping.
ForEachCollectionElementAction makeForEachCollectionElementAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.ForEachNumberAction makeForEachNumberAction(java.lang.String name)
name
- The name of this action.
J2eeFactory makeJ2eeFactory()
JavaAction makeJavaAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.Join makeJoin(java.lang.String name)
name
- The name of the Join.
java.lang.IllegalArgumentException
- If name is already used.ManualTrigger makeManualTrigger(java.lang.String name)
name
- The name of the trigger.
java.lang.IllegalArgumentException
- If name is already used.NotificationFactory makeNotificationFactory()
NullAction makeNullAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.ProcessAction makeProcessAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.RegularExpressionAction makeRegularExpressionAction(java.lang.String name)
name
- The name of this action.
java.lang.IllegalArgumentException
- If name is already used.RestAction makeRestAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.RmiAction makeRmiAction(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.RuntimeConfigurationSource makeRuntimeConfigurationSource(java.lang.String name)
name
- The name of the runtime data mapping.
Split makeSplit(java.lang.String name)
name
- The name of the Split.
java.lang.IllegalArgumentException
- If name is already used.TimerTrigger makeTimerTrigger(java.lang.String name)
name
- The name of the trigger.
java.lang.IllegalArgumentException
- If name is already used.WebServiceAction makeWebService(java.lang.String name)
name
- The name of the action.
java.lang.IllegalArgumentException
- If name is already used.void pause()
boolean removeAction(java.lang.String actionName)
actionName
- The name of the action to be removed from this flow
chart. Since action names are unique within a flow chart,
the action name uniquely specifies an action.
void reset()
void resume()
void setDeadline(java.util.Date deadline) throws EngineException
deadline
- The date when this flow chart or denoted flow chart run
should finish execution.
EngineException
- If a system error occurs.void setDeadline(java.lang.String timeExpression) throws EngineException
timeExpression
- The time expression used to calculate the deadline
date for this flow chart or denoted flow chart run.
EngineException
- If a system error occurs.void setDeadlineWindow(java.lang.String timeExpression) throws EngineException
timeExpression
- A negative relative time expression.
EngineException
- If a system error occurs.DeadlineApproachingEvent
void setDescription(java.lang.String description)
description
- A description of this flow chart meant for human consumption.void setListenerClasspath(java.lang.String classpath)
classpath
- The custom Java classpath for this flow chart.RuntimeConfigurationNode.LISTENER_CLASSPATH
void setName(java.lang.String name)
name
- The name of this flow chart in the flow chart namespace.
java.lang.IllegalArgumentException
- If name is null, the empty string, or if
it contains a "*", "?", "%", "_", ".", or
"$" character.void setPriority(java.lang.Integer priority)
priority
- The priority of this flow chart. May be null.
java.lang.IllegalArgumentException
- If priority is less than 1.RuntimeConfigurationNode.PRIORITY
void setRunAsUser(java.lang.String runAsUser)
runAsUser
- The username under whose security context this flow chart
executes.RuntimeConfigurationNode.RUN_AS_USER
void verify() throws EngineException
EngineException
- If this flow chart or any of the actions within
this flow chart are configured incorrectly.java.util.SortedMap verifyAll()
Action.verify()
java.util.SortedMap verifyAllOnClient()
Action.verifyOnClient()
void verifyOnClient() throws EngineException
EngineException
- If this flow chart is not configured correctly on
or in a client.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |