public interface Action
Action| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASS_VERSIONDeprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute(ScenarioExecutionContext pContext)Deprecated.  Executes the action in the given scenario execution context. | 
| void | execute(ScenarioExecutionContext[] pContexts)Deprecated.  Executes the action in each of the given scenario execution
 contexts. | 
| void | initialize(java.util.Map pParameters)Deprecated.  Initializes the action with the given parameters. | 
static final java.lang.String CLASS_VERSION
void initialize(java.util.Map pParameters)
                throws ScenarioException
ScenarioException - if the action could not be properly
 initialized - for example, if not all of the required parameters
 are present in the MapExpressionvoid execute(ScenarioExecutionContext pContext) throws ActionException
ActionException - if the action failed when executed in
 this context; the scenario engine will catch the ActionException
 and respond based on the value of the action's error response, as
 specified in the ActionException itself and/or the action
 registry; for example, the engine may ignore the error and
 continue, or it may delete the scenario instance pointed to by
 the context and stop executing the scenario segment in this
 contextvoid execute(ScenarioExecutionContext[] pContexts) throws ActionException
If an error occurs when executing the action in one of the given contexts, this method should still try to execute the action in the rest of the contexts before throwing an exception. In the end, an ActionException should be thrown with a FailedActionInfo entry for each failed scenario execution context.
ActionException - if the action failed when executed in
 any of the given contexts; the scenario engine will catch the
 ActionException and, for each failed context, respond based on
 the value of the action's error response, as specified in the
 ActionException itself and/or the action registry; for example,
 the engine may ignore the error and continue, or it may delete
 the scenario instance pointed to by the context and stop
 executing the scenario segment in that context