|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensionContext
Context for executing extension activities or extension assign operations.
Implementations of the ExtensionOperation
class
use this interface to access BPEL variables, property sets and link status.
All ExtensionOperation
implementations must complete with
complete()
, completeWithFault(...)
.
Method Summary | |
---|---|
void |
complete()
Marks the currently executed activity as successfully completed. |
void |
completeWithFault(FaultException fault)
Marks the currently executed activity as faulted. |
void |
completeWithFault(java.lang.Throwable t)
Marks the currently executed activity as faulted. |
java.lang.String |
getActivityName()
Returns the name of the invoking activity. |
java.net.URI |
getDUDir()
Returns the location of the deployment bundle of the executed process. |
OdeInternalInstance |
getInternalInstance()
Returns ODE's internal runtime instance. |
OActivity |
getOActivity()
Returns the OActivity object. |
java.lang.Long |
getProcessId()
Reads the current process instance id. |
java.util.Map<java.lang.String,OScope.Variable> |
getVisibleVariables()
Returns a list of variables visible in the current scope. |
boolean |
isVariableVisible(java.lang.String variableName)
Returns whether a variable is visible in the current scope or not. |
void |
printToConsole(java.lang.String msg)
Allows printing debug output to the console. |
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)
Read the value of a BPEL variable. |
org.w3c.dom.Node |
readVariable(java.lang.String variableName)
Read the value of a BPEL variable. |
void |
writeVariable(OScope.Variable variable,
org.w3c.dom.Node value)
Write the value into a BPEL variable. |
void |
writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
Write the value into a BPEL variable. |
Method Detail |
---|
java.util.Map<java.lang.String,OScope.Variable> getVisibleVariables() throws FaultException
FaultException
boolean isVariableVisible(java.lang.String variableName)
variableName
- name of the variable.
FaultException
org.w3c.dom.Node readVariable(OScope.Variable variable) throws FaultException
variable
- variable to read
Node
FaultException
org.w3c.dom.Node readVariable(java.lang.String variableName) throws FaultException
variableName
- variable to read
Node
FaultException
void writeVariable(OScope.Variable variable, org.w3c.dom.Node value) throws FaultException, ExternalVariableModuleException
variable
- variable to writevalue
- the value to be stored into the variable
FaultException
ExternalVariableModuleException
void writeVariable(java.lang.String variableName, org.w3c.dom.Node value) throws FaultException, ExternalVariableModuleException
variableName
- variable to writevalue
- the value to be stored into the variable
FaultException
ExternalVariableModuleException
java.lang.String readMessageProperty(OScope.Variable variable, OProcess.OProperty property) throws FaultException
variable
- variable containing propertyproperty
- property to read
FaultException
java.lang.Long getProcessId()
java.lang.String getActivityName()
java.net.URI getDUDir()
void printToConsole(java.lang.String msg)
org.apache.ode.extension.Console
.
The target log level is INFO.
void complete()
void completeWithFault(java.lang.Throwable t)
t
- an exception to be reported as the fault cause.void completeWithFault(FaultException fault)
fault
- a fault.OActivity getOActivity()
OdeInternalInstance getInternalInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |