|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ode.bpel.rtrep.v2.ExtensionContextImpl
public class ExtensionContextImpl
| Constructor Summary | |
|---|---|
ExtensionContextImpl(org.apache.ode.bpel.rtrep.v2.ActivityInfo activityInfo,
org.apache.ode.bpel.rtrep.v2.ScopeFrame scopeFrame,
OdeInternalInstance context)
|
|
| Method Summary | |
|---|---|
void |
complete()
Marks the currently executed activity as successfully completed. |
void |
completeWithFault(FaultException ex)
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. |
OScope.Variable |
getVisibleVariable(java.lang.String varName)
|
java.util.Map<java.lang.String,OScope.Variable> |
getVisibleVariables()
Returns a list of variables visible in the current scope. |
boolean |
isVariableVisible(java.lang.String varName)
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 |
sendEvent(ScopeEvent event)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionContextImpl(org.apache.ode.bpel.rtrep.v2.ActivityInfo activityInfo,
org.apache.ode.bpel.rtrep.v2.ScopeFrame scopeFrame,
OdeInternalInstance context)
| Method Detail |
|---|
public java.lang.Long getProcessId()
ExtensionContext
getProcessId in interface ExtensionContext
public java.util.Map<java.lang.String,OScope.Variable> getVisibleVariables()
throws FaultException
ExtensionContext
getVisibleVariables in interface ExtensionContextFaultException
public java.lang.String readMessageProperty(OScope.Variable variable,
OProcess.OProperty property)
throws FaultException
ExtensionContext
readMessageProperty in interface ExtensionContextvariable - variable containing propertyproperty - property to read
FaultException
public org.w3c.dom.Node readVariable(OScope.Variable variable)
throws FaultException
ExtensionContext
readVariable in interface ExtensionContextvariable - variable to read
Node
FaultException
public void writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
throws FaultException,
ExternalVariableModuleException
ExtensionContext
writeVariable in interface ExtensionContextvariableName - variable to writevalue - the value to be stored into the variable
FaultException
ExternalVariableModuleException
public org.w3c.dom.Node readVariable(java.lang.String variableName)
throws FaultException
ExtensionContext
readVariable in interface ExtensionContextvariableName - variable to read
Node
FaultException
public void writeVariable(OScope.Variable variable,
org.w3c.dom.Node value)
throws FaultException,
ExternalVariableModuleException
ExtensionContext
writeVariable in interface ExtensionContextvariable - variable to writevalue - the value to be stored into the variable
FaultException
ExternalVariableModuleExceptionpublic OScope.Variable getVisibleVariable(java.lang.String varName)
public boolean isVariableVisible(java.lang.String varName)
ExtensionContext
isVariableVisible in interface ExtensionContextvarName - name of the variable.
public java.lang.String getActivityName()
ExtensionContext
getActivityName in interface ExtensionContextpublic OActivity getOActivity()
ExtensionContext
getOActivity in interface ExtensionContextpublic void sendEvent(ScopeEvent event)
public void complete()
ExtensionContext
complete in interface ExtensionContextpublic void completeWithFault(java.lang.Throwable t)
ExtensionContext
completeWithFault in interface ExtensionContextt - an exception to be reported as the fault cause.public void completeWithFault(FaultException ex)
ExtensionContext
completeWithFault in interface ExtensionContextex - a fault.public OdeInternalInstance getInternalInstance()
ExtensionContext
getInternalInstance in interface ExtensionContextpublic java.net.URI getDUDir()
ExtensionContext
getDUDir in interface ExtensionContextpublic void printToConsole(java.lang.String msg)
ExtensionContextorg.apache.ode.extension.Console.
The target log level is INFO.
printToConsole in interface ExtensionContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||