|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScenarioContext
Provides context around scenario execution.
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName) Retrieves an attribute by name. |
IScenarioRequest |
getScenarioRequest() Provides information about the current scenario request |
java.lang.Object |
resolveExpression(java.lang.String expression) Convenience method to resolve an EL expression. |
void |
setAttribute(java.lang.String variableName, java.lang.Object value) Sets a scenario context attribute. |
Method Detail |
---|
java.lang.Object resolveExpression(java.lang.String expression)
An example expression would be:
${property:get('myNamespace','myPropertyDef','myPropSet','myProp')}
expression
- The string expression to resolve.void setAttribute(java.lang.String variableName, java.lang.Object value)
Once the variable is set, the variable is available via EL.
For example, if you set the following attribute:
scenarioContext.setAttribute("foo",myObject) it is available using EL in the following example: ${foo}
variableName
- The name of the attribute to set.value
- The value to set.java.lang.Object getAttribute(java.lang.String attributeName)
attributeName
- The name of the attributeIScenarioRequest getScenarioRequest()
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |