org.apache.ode.bpel.rtrep.v2
Class BoundVariableEvaluationContext

java.lang.Object
  extended by org.apache.ode.bpel.rtrep.v2.BoundVariableEvaluationContext
All Implemented Interfaces:
EvaluationContext

public class BoundVariableEvaluationContext
extends java.lang.Object
implements EvaluationContext

Expression language evaluation context used for expressions referencing a predefined variable bound to a given value. Used for correlation matching based on a message value extraction function (i.e. SimPEL+JS).


Constructor Summary
BoundVariableEvaluationContext()
           
 
Method Summary
 void addBoundVariable(java.lang.String name, org.w3c.dom.Element value)
           
 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 partDef)
          Read the value of a BPEL variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundVariableEvaluationContext

public BoundVariableEvaluationContext()
Method Detail

addBoundVariable

public void addBoundVariable(java.lang.String name,
                             org.w3c.dom.Element value)

readVariable

public org.w3c.dom.Node readVariable(OScope.Variable variable,
                                     OMessageVarType.Part partDef)
                              throws FaultException
Description copied from interface: EvaluationContext
Read the value of a BPEL variable.

Specified by:
readVariable in interface EvaluationContext
Parameters:
variable - variable to read
partDef - the part (or null)
Returns:
the value of the variable, wrapped in a Node
Throws:
FaultException

getPartData

public org.w3c.dom.Node getPartData(org.w3c.dom.Element message,
                                    OMessageVarType.Part part)
                             throws FaultException
Specified by:
getPartData in interface EvaluationContext
Throws:
FaultException

readMessageProperty

public java.lang.String readMessageProperty(OScope.Variable variable,
                                            OProcess.OProperty property)
                                     throws FaultException
Description copied from interface: EvaluationContext
Read the value of a BPEL property.

Specified by:
readMessageProperty in interface EvaluationContext
Parameters:
variable - variable containing property
property - property to read
Returns:
value of the property
Throws:
FaultException

isLinkActive

public boolean isLinkActive(OLink olink)
                     throws FaultException
Description copied from interface: EvaluationContext
Obtain the status of a control link.

Specified by:
isLinkActive in interface EvaluationContext
Parameters:
olink - link to check
Returns:
true if the link is active, false otherwise.
Throws:
FaultException

getRootNode

public org.w3c.dom.Node getRootNode()
Description copied from interface: EvaluationContext
Obtain the root node.

Specified by:
getRootNode in interface EvaluationContext
Returns:
root node

evaluateQuery

public org.w3c.dom.Node evaluateQuery(org.w3c.dom.Node root,
                                      OExpression expr)
                               throws FaultException
Description copied from interface: EvaluationContext
Evaluate a query expression.

Specified by:
evaluateQuery in interface EvaluationContext
Parameters:
root - the root context
expr - the query expression
Returns:
node returned by query
Throws:
FaultException

getProcessId

public java.lang.Long getProcessId()
Description copied from interface: EvaluationContext
Reads the current process instance id.

Specified by:
getProcessId in interface EvaluationContext
Returns:
instance id

narrowTypes

public boolean narrowTypes()
Description copied from interface: EvaluationContext
Indicates whether simple types should be narrowed to a Java type when using this evaluation context.

Specified by:
narrowTypes in interface EvaluationContext

getBaseResourceURI

public java.net.URI getBaseResourceURI()
Specified by:
getBaseResourceURI in interface EvaluationContext

getPropertyValue

public org.w3c.dom.Node getPropertyValue(javax.xml.namespace.QName propertyName)
Description copied from interface: EvaluationContext
Retrieves the property value that has been defined for this BPEL Process type.

Specified by:
getPropertyValue in interface EvaluationContext
Returns:
propertyValue - the value corresponding to the process property name.