org.apache.ode.bpel.rtrep.v2
Interface EvaluationContext

All Known Implementing Classes:
BoundVariableEvaluationContext, ExprEvaluationContextImpl, PropertyAliasEvaluationContext

public interface EvaluationContext

Context for evaluating expressions. Implementations of the ExpressionLanguageRuntime interface use this interface to access BPEL variables, property sets and link statuses. FIXME: this is the only thing that uses bpel.o objects in this module... smells fishy, FIXME: prob should change this interface to not use these. -mbs


Method Summary
 org.w3c.dom.Node evaluateQuery(org.w3c.dom.Node root, OExpression expr)
          Evaluate a query expression.
 java.net.URI getBaseResourceURI()
           
 org.w3c.dom.Node getPartData(org.w3c.dom.Element message, OMessageVarType.Part part)
           
 java.lang.Long getProcessId()
          Reads the current process instance id.
 org.w3c.dom.Node getPropertyValue(javax.xml.namespace.QName propertyName)
          Retrieves the property value that has been defined for this BPEL Process type.
 org.w3c.dom.Node getRootNode()
          Obtain the root node.
 boolean isLinkActive(OLink olink)
          Obtain the status of a control link.
 boolean narrowTypes()
          Indicates whether simple types should be narrowed to a Java type when using this evaluation context.
 java.lang.String readMessageProperty(OScope.Variable variable, OProcess.OProperty property)
          Read the value of a BPEL property.
 org.w3c.dom.Node readVariable(OScope.Variable variable, OMessageVarType.Part part)
          Read the value of a BPEL variable.
 

Method Detail

readVariable

org.w3c.dom.Node readVariable(OScope.Variable variable,
                              OMessageVarType.Part part)
                              throws FaultException
Read the value of a BPEL variable.

Parameters:
variable - variable to read
part - the part (or null)
Returns:
the value of the variable, wrapped in a Node
Throws:
FaultException

getPartData

org.w3c.dom.Node getPartData(org.w3c.dom.Element message,
                             OMessageVarType.Part part)
                             throws FaultException
Throws:
FaultException

readMessageProperty

java.lang.String readMessageProperty(OScope.Variable variable,
                                     OProcess.OProperty property)
                                     throws FaultException
Read the value of a BPEL property.

Parameters:
variable - variable containing property
property - property to read
Returns:
value of the property
Throws:
FaultException

isLinkActive

boolean isLinkActive(OLink olink)
                     throws FaultException
Obtain the status of a control link.

Parameters:
olink - link to check
Returns:
true if the link is active, false otherwise.
Throws:
FaultException

getRootNode

org.w3c.dom.Node getRootNode()
Obtain the root node.

Returns:
root node

evaluateQuery

org.w3c.dom.Node evaluateQuery(org.w3c.dom.Node root,
                               OExpression expr)
                               throws FaultException
Evaluate a query expression.

Parameters:
root - the root context
expr - the query expression
Returns:
node returned by query
Throws:
FaultException

getProcessId

java.lang.Long getProcessId()
Reads the current process instance id.

Returns:
instance id

narrowTypes

boolean narrowTypes()
Indicates whether simple types should be narrowed to a Java type when using this evaluation context.


getBaseResourceURI

java.net.URI getBaseResourceURI()

getPropertyValue

org.w3c.dom.Node getPropertyValue(javax.xml.namespace.QName propertyName)
Retrieves the property value that has been defined for this BPEL Process type.

Returns:
propertyValue - the value corresponding to the process property name.