|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Action
A scenario action.
Action
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Deprecated. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
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 MapExpression
void 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |