public abstract class OdiLoadPlanStep extends OdiLoadPlanElement
The OdiLoadPlanStep is an abstract class for the steps of the aggregate OdiLoadPlan.
 The implementations are:
 
 The implementations have different behavior in regards to the OdiLoadPlan, this class helps share the common behavior and properties
 The life cycle of an OdiLoadPlanStep begins when a user adds one of its implementation to the list of the steps of the OdiLoadPlan.
 Users can modify the steps in order to make them fit their needs.
 The life cycle ends when the step is removed from the list of steps of the OdiLoadPlan  
 
Order is managed at creation time. When moving, order is managed by the step container. Order is then managed when removing a child.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
OdiLoadPlanStep.ExceptionBehavior
Behavior in case the  
OdiLoadPlanStep execution throws an exception. | 
static class  | 
OdiLoadPlanStep.RegenerationMode
Defines the regeneration modes of a step 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static int | 
MAX_PRIORITY
maximal value for property Priority 
 | 
static int | 
MIN_PRIORITY
minimal value for property Priority 
 | 
static int | 
SESSION_KEYWORDS_MAX_LENGTH
Maximum length for session keywords strings 
 | 
NAME_MAX_LENGTH| Modifier and Type | Method and Description | 
|---|---|
OdiLoadPlanStepVariable | 
addVariable(OdiLoadPlanVariable pOdiLoadPlanVariable)
Associate an  
OdiLoadPlanVariable to the current OdiLoadPlanStep. | 
OdiLoadPlanStepVariable | 
addVariable(OdiLoadPlanVariable pOdiLoadPlanVariable,
           java.lang.Object pValue)
Associate an  
OdiLoadPlanVariable to the current OdiLoadPlanStep. | 
OdiLoadPlanStep | 
copy(boolean generateName)
Deprecated. 
 
since 11.1.1.7.0 consider using  
duplicate() or duplicate(OdiLoadPlanStep) method. | 
OdiLoadPlanStep | 
duplicate()
Create a duplicated step just placed just after this step/step container 
 | 
OdiLoadPlanStep | 
duplicate(OdiLoadPlanStep parentElement)  | 
OdiLoadPlanException | 
getException()
Returns the exception step defined within this load plan to be executed in case this step is in Error. 
In case the step is defined in the step hierarchy of an exception, this method will throw an UnsupportedOperationException | 
OdiLoadPlanStep.ExceptionBehavior | 
getExceptionBehavior()
Returns the exception behavior specifies how this step should behave in case an exception is encountered. 
In case the step is defined in the step hierarchy of an exception, this method will throw an UnsupportedOperationException | 
java.io.Serializable | 
getInternalId()
Provides a common getter for the persistence layer to obtain an identity,
 irrespective of the actual type of identity used. 
 | 
java.util.Collection | 
getLoadPlanStepVariables()  | 
int | 
getOrder()  | 
OdiLoadPlanElement | 
getParentElement()  | 
java.lang.String | 
getSessionKeywordsAsString()  | 
int | 
getTimeout()  | 
boolean | 
isEnabled()  | 
void | 
regenerate(OdiLoadPlanStep.RegenerationMode pRegenerationMode,
          IOdiScenarioGenerator pScenarioGenerator)
 Will regenerate all scenarios of this step and its children according to the specified RegenerationMode. 
If this step is a RunScenario step type it regenerates only this step scenario. This operation is not supported if the work repository is a runtime repository. This operation will not happen if one of the scenario original object doesn't exist anymore (throws OdiOriginalObjectNotExistException | 
void | 
removeVariable(OdiLoadPlanStepVariable pOdiLoadPlanStepVariable)
Removes the  
OdiLoadPlanStepVariable from the list of the OdiLoadPlanStep | 
void | 
setEnabled(boolean enabled)  | 
void | 
setException(OdiLoadPlanException pException)
Defines the exception step within this load plan that will be executed in case this step is in Error. 
In case the step is defined in the step hierarchy of an exception, this method will throw an UnsupportedOperationException | 
void | 
setExceptionBehavior(OdiLoadPlanStep.ExceptionBehavior exceptionBehavior)
Defines the exception behavior i.e. 
 | 
void | 
setSessionKeywordsAsString(java.lang.String sessionKeywordsAsString)  | 
void | 
setTimeout(int timeout)  | 
getLoadPlan, getName, getStepId, hasDisabledParent, setName, toStringpublic static final int SESSION_KEYWORDS_MAX_LENGTH
public static final int MIN_PRIORITY
#getPriority(), 
#setPriority(int), 
Constant Field Valuespublic static final int MAX_PRIORITY
#getPriority(), 
#setPriority(int), 
Constant Field Valuespublic OdiLoadPlanStepVariable addVariable(OdiLoadPlanVariable pOdiLoadPlanVariable)
OdiLoadPlanVariable to the current OdiLoadPlanStep. Adds it to the list and returns the corresponding OdiLoadPlanStepVariablepOdiLoadPlanVariable - the variable to associate to the stepOdiLoadPlanStepVariable created.DomainRuntimeException - if the odiLoadPlanVariable is not declared in the current OdiLoadPlan#removeVariable(OdiLoadPlanVariable), 
getLoadPlanStepVariables()public OdiLoadPlanStepVariable addVariable(OdiLoadPlanVariable pOdiLoadPlanVariable, java.lang.Object pValue)
OdiLoadPlanVariable to the current OdiLoadPlanStep. Adds it to the list and returns the corresponding OdiLoadPlanStepVariablepOdiLoadPlanVariable - the variable to associate to the steppValue - the value used for this variable. Must be consistent with the datatype of the OdiLoadPlanVariable.OdiLoadPlanStepVariable created.DomainRuntimeException - if the variable is not defined in the current loadplanDomainRuntimeException - if the value is not consistent with the variable datatype#removeVariable(OdiLoadPlanVariable), 
getLoadPlanStepVariables()public java.util.Collection getLoadPlanStepVariables()
OdiLoadPlanStepVariable#addVariable(OdiLoadPlanVariable, boolean), 
#removeVariable(OdiLoadPlanVariable)public void removeVariable(OdiLoadPlanStepVariable pOdiLoadPlanStepVariable)
OdiLoadPlanStepVariable from the list of the OdiLoadPlanSteppOdiLoadPlanVariable - the overridden variable to remove. Must not be null, and must be defined in the same load planDomainRuntimeException - if the variable is null or not defined in the same loadplanpublic java.lang.String getSessionKeywordsAsString()
OdiLoadPlanExceptionsetSessionKeywordsAsString(String)public void setSessionKeywordsAsString(java.lang.String sessionKeywordsAsString)
sessionKeywordsAsString - Keywords for sessions created when executing this OdiLoadPlanException. Its length must be lower or equal to SESSION_KEYWORDS_MAX_LENGTHDomainRuntimeException - if the keywords are longer than SESSION_KEYWORDS_MAX_LENGTHgetSessionKeywordsAsString(), 
SESSION_KEYWORDS_MAX_LENGTHpublic OdiLoadPlanStep.ExceptionBehavior getExceptionBehavior()
UnsupportedOperationExceptionjava.lang.UnsupportedOperationException - if the step is part of an exception hierarchypublic void setExceptionBehavior(OdiLoadPlanStep.ExceptionBehavior exceptionBehavior)
exceptionBehavior - Must not be nulljava.lang.UnsupportedOperationException - if the step is part of an exception hierarchypublic boolean isEnabled()
isEnabled in class OdiLoadPlanElementsetEnabled(boolean)public void setEnabled(boolean enabled)
enabled - 0/1 to enable or disable this exception. Disabled steps are not executed in the overall load plan regardless of the enabled/disabled property of their sub-elements.isEnabled()public int getOrder()
setOrder(int), 
OdiLoadPlanStepSerialpublic int getTimeout()
setTimeout(int)public void setTimeout(int timeout)
timeout - in seconds for this step. The timeout defines a maximum time that this step should take before being aborted by the Load Plan. A value of zero indicates an infinite timeout.DomainRuntimeException - if the timeout is negative.getTimeout()public OdiLoadPlanException getException()
UnsupportedOperationExceptionjava.lang.UnsupportedOperationException - if the step is part of an exception hierarchysetException(OdiLoadPlanException)public void setException(OdiLoadPlanException pException)
UnsupportedOperationExceptionexception - java.lang.UnsupportedOperationException - if the step is part of an exception hierarchygetException()public java.io.Serializable getInternalId()
IRepositoryEntity
 Typically a subclass will delegate to a public
 SomePrimitiveWrapper getId() method. The necessity for the
 getInternalId() abstract method is solely because the
 persistence layer needs a way of obtaining the identity irrespective of
 the actual identity implementation choice.
 
 Returning null from this method will indicate the object has
 never been saved. This will likely be relied on by some DAO
 implementations.
 
public OdiLoadPlanElement getParentElement()
getParentElement in class OdiLoadPlanElementpublic void regenerate(OdiLoadPlanStep.RegenerationMode pRegenerationMode, IOdiScenarioGenerator pScenarioGenerator)
 Will regenerate all scenarios of this step and its children according to the specified RegenerationMode.
 
 If this step is a RunScenario step type it regenerates only this step scenario.
 This operation is not supported if the work repository is a runtime repository.
 This operation will not happen if one of the scenario original object doesn't exist anymore (throws OdiOriginalObjectNotExistException
 
pRegenerationMode - Must not be null.pScenarioGenerator - The scenario generation service used. Must not be null.java.lang.UnsupportedOperationException - if the work repository is a runtime repository.DomainRuntimeException - if the regeneration mode is null.DomainRuntimeException - if the generation service is null.OdiOriginalObjectNotExistException - if the original object of a scenario doesn't exist.public OdiLoadPlanStep copy(boolean generateName)
duplicate() or duplicate(OdiLoadPlanStep) method.FOR INTERNAL USE ONLY
public OdiLoadPlanStep duplicate()
public OdiLoadPlanStep duplicate(OdiLoadPlanStep parentElement)
parentElement - container step on which we want to duplicate the current step