Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.wcps.conductor.scenario
Interface IScenarioContext


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

resolveExpression

java.lang.Object resolveExpression(java.lang.String expression)
Convenience method to resolve an EL expression.

An example expression would be:
${property:get('myNamespace','myPropertyDef','myPropSet','myProp')}

Parameters:
expression - The string expression to resolve.
Returns:
An object representing the results of the expression.

setAttribute

void setAttribute(java.lang.String variableName,
                  java.lang.Object value)
Sets a scenario context attribute.

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}

Parameters:
variableName - The name of the attribute to set.
value - The value to set.

getAttribute

java.lang.Object getAttribute(java.lang.String attributeName)
Retrieves an attribute by name.
Parameters:
attributeName - The name of the attribute
Returns:
The value of the attribute if set, null otherwise.

getScenarioRequest

IScenarioRequest getScenarioRequest()
Provides information about the current scenario request
Returns:
IScenarioRequest

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.