atg.scenario.action
Interface Action

All Known Implementing Classes:
ActionImpl

Deprecated. This interface has been deprecated in favour of atg.process.action.Action

public interface Action

A scenario action.

See Also:
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

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Deprecated. 
See Also:
Constant Field Values
Method Detail

initialize

void initialize(java.util.Map pParameters)
                throws ScenarioException
Deprecated. 
Initializes the action with the given parameters. The keys in the parameter Map are the String parameter names; the values are the Expression objects representing parameter values.

Throws:
ScenarioException - if the action could not be properly initialized - for example, if not all of the required parameters are present in the Map
See Also:
Expression

execute

void execute(ScenarioExecutionContext pContext)
             throws ActionException
Deprecated. 
Executes the action in the given scenario execution context. The context can be used to evaluate any parameter Expressions.

Throws:
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 context

execute

void execute(ScenarioExecutionContext[] pContexts)
             throws ActionException
Deprecated. 
Executes the action in each of the given scenario execution contexts. Each context can be used to evaluate any parameter Expressions.

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.

Throws:
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