public interface ExtensionContext
extends java.io.Serializable
ExtensionOperation class
use this interface to access BPEL variables, property sets and link status.
All ExtensionOperation implementations must complete with
complete(), completeWithFault(...).| Modifier and Type | Method and Description |
|---|---|
void |
complete(java.lang.String cid)
Marks the currently executed activity as successfully completed.
|
void |
completeWithFault(java.lang.String cid,
FaultException fault)
Marks the currently executed activity as faulted.
|
void |
completeWithFault(java.lang.String cid,
java.lang.Throwable t)
Marks the currently executed activity as faulted.
|
java.lang.String |
getActivityName()
Returns the name of the invoking activity.
|
java.lang.String[] |
getCorrelationValues() |
java.lang.String |
getCorrelatorId() |
java.net.URI |
getDUDir()
Returns the location of the deployment bundle of the executed process.
|
BpelRuntimeContext |
getInternalInstance()
Returns ODE's internal runtime instance.
|
OActivity |
getOActivity()
Returns the OActivity object.
|
ParentScopeChannel |
getParentScopeChannel() |
org.w3c.dom.Node |
getPartData(org.w3c.dom.Element element,
java.lang.String variable) |
PartnerLinkInstance |
getPartnerLinkInstance(OPartnerLink partnerLink)
Get the partner link
|
PartnerLinkInstance |
getPartnerLinkInstance(java.lang.String partnerLinkName)
Get the partner link
|
java.lang.Long |
getProcessId()
Reads the current process instance id.
|
OProcess |
getProcessModel()
Get the Process Model
|
TerminationChannel |
getTerminationChannel() |
java.util.Map<java.lang.String,OScope.Variable> |
getVisibleVariables()
Returns a list of variables visible in the current scope.
|
boolean |
isPartnerLinkVisible(java.lang.String partnerLinkName)
Check whether the partner link is visible in the current scope or not
|
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 |
setCorrelationValues(java.lang.String[] values)
Set correlation values in order to find a route
This should be set in LongRunning extensions in-order to receive the response
|
void |
setCorrelatorId(java.lang.String correlatorId)
Set Correlator value
This should be set in LongRunning extensions in-order to receive the response
|
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.
|
java.util.Map<java.lang.String,OScope.Variable> getVisibleVariables() throws FaultException
FaultException - FaultExceptionboolean isVariableVisible(java.lang.String variableName)
variableName - name of the variable.org.w3c.dom.Node readVariable(OScope.Variable variable) throws FaultException
variable - variable to readNodeFaultException - FaultExceptionorg.w3c.dom.Node readVariable(java.lang.String variableName)
throws FaultException
variableName - variable to readNodeFaultException - FaultExceptionvoid writeVariable(OScope.Variable variable, org.w3c.dom.Node value) throws FaultException, ExternalVariableModuleException
variable - variable to writevalue - the value to be stored into the variableFaultException - FaultExceptionExternalVariableModuleException - ExternalVariableModuleExceptionvoid writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
throws FaultException
variableName - variable to writevalue - the value to be stored into the variableFaultException - FaultExceptionExternalVariableModuleException - ExternalVariableModuleExceptionjava.lang.String readMessageProperty(OScope.Variable variable, OProcess.OProperty property) throws FaultException
variable - variable containing propertyproperty - property to readFaultException - FaultExceptionjava.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.msg - Messagevoid complete(java.lang.String cid)
cid - idvoid completeWithFault(java.lang.String cid,
java.lang.Throwable t)
cid - idt - an exception to be reported as the fault cause.void completeWithFault(java.lang.String cid,
FaultException fault)
cid - idfault - a fault.OActivity getOActivity()
BpelRuntimeContext getInternalInstance()
PartnerLinkInstance getPartnerLinkInstance(java.lang.String partnerLinkName) throws FaultException
partnerLinkName - name of the partner linkFaultException - FaultExceptionboolean isPartnerLinkVisible(java.lang.String partnerLinkName)
partnerLinkName - name of the partner linkPartnerLinkInstance getPartnerLinkInstance(OPartnerLink partnerLink) throws FaultException
partnerLink - partnerLinkFaultException - FaultExceptionOProcess getProcessModel()
void setCorrelationValues(java.lang.String[] values)
values - valuesjava.lang.String[] getCorrelationValues()
void setCorrelatorId(java.lang.String correlatorId)
correlatorId - partnerlink.operationjava.lang.String getCorrelatorId()
org.w3c.dom.Node getPartData(org.w3c.dom.Element element,
java.lang.String variable)
TerminationChannel getTerminationChannel()
ParentScopeChannel getParentScopeChannel()
Copyright © 2021 WSO2. All Rights Reserved.