public class ExtensionContextImpl extends java.lang.Object implements ExtensionContext
| Constructor and Description |
|---|
ExtensionContextImpl(org.apache.ode.bpel.runtime.ActivityInfo activityInfo,
ScopeFrame scopeFrame,
BpelRuntimeContext context) |
| 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 ex)
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
|
ScopeFrame |
getScopeFrame() |
TerminationChannel |
getTerminationChannel() |
OPartnerLink |
getVisiblePartnerLink(java.lang.String partnerLinkName) |
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 |
isPartnerLinkVisible(java.lang.String partnerLinkName)
Check whether the partner link is visible in the current scope or not
|
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 |
setBpelRuntimeContext(BpelRuntimeContext context) |
void |
setCorrelationValues(java.lang.String[] values)
Set correlation values in order to find a route
|
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.
|
public ExtensionContextImpl(org.apache.ode.bpel.runtime.ActivityInfo activityInfo,
ScopeFrame scopeFrame,
BpelRuntimeContext context)
public void setBpelRuntimeContext(BpelRuntimeContext context)
public java.lang.Long getProcessId()
ExtensionContextgetProcessId in interface ExtensionContextpublic java.util.Map<java.lang.String,OScope.Variable> getVisibleVariables() throws FaultException
ExtensionContextgetVisibleVariables in interface ExtensionContextFaultException - FaultExceptionpublic java.lang.String readMessageProperty(OScope.Variable variable, OProcess.OProperty property) throws FaultException
ExtensionContextreadMessageProperty in interface ExtensionContextvariable - variable containing propertyproperty - property to readFaultException - FaultExceptionpublic org.w3c.dom.Node readVariable(OScope.Variable variable) throws FaultException
ExtensionContextreadVariable in interface ExtensionContextvariable - variable to readNodeFaultException - FaultExceptionpublic void writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
throws FaultException
ExtensionContextwriteVariable in interface ExtensionContextvariableName - variable to writevalue - the value to be stored into the variableFaultException - FaultExceptionpublic org.w3c.dom.Node readVariable(java.lang.String variableName)
throws FaultException
ExtensionContextreadVariable in interface ExtensionContextvariableName - variable to readNodeFaultException - FaultExceptionpublic void writeVariable(OScope.Variable variable, org.w3c.dom.Node value) throws FaultException
ExtensionContextwriteVariable in interface ExtensionContextvariable - variable to writevalue - the value to be stored into the variableFaultException - FaultExceptionpublic OScope.Variable getVisibleVariable(java.lang.String varName)
public boolean isVariableVisible(java.lang.String varName)
ExtensionContextisVariableVisible in interface ExtensionContextvarName - name of the variable.public java.lang.String getActivityName()
ExtensionContextgetActivityName in interface ExtensionContextpublic OActivity getOActivity()
ExtensionContextgetOActivity in interface ExtensionContextpublic void sendEvent(ScopeEvent event)
public void complete(java.lang.String cid)
ExtensionContextcomplete in interface ExtensionContextcid - idpublic void completeWithFault(java.lang.String cid,
java.lang.Throwable t)
ExtensionContextcompleteWithFault in interface ExtensionContextcid - idt - an exception to be reported as the fault cause.public void completeWithFault(java.lang.String cid,
FaultException ex)
ExtensionContextcompleteWithFault in interface ExtensionContextcid - idex - a fault.public BpelRuntimeContext getInternalInstance()
ExtensionContextgetInternalInstance in interface ExtensionContextpublic java.net.URI getDUDir()
ExtensionContextgetDUDir in interface ExtensionContextpublic void printToConsole(java.lang.String msg)
ExtensionContextorg.apache.ode.extension.Console.
The target log level is INFO.printToConsole in interface ExtensionContextmsg - Messagepublic PartnerLinkInstance getPartnerLinkInstance(java.lang.String partnerLinkName) throws FaultException
ExtensionContextgetPartnerLinkInstance in interface ExtensionContextpartnerLinkName - name of the partner linkFaultException - FaultExceptionpublic OPartnerLink getVisiblePartnerLink(java.lang.String partnerLinkName)
public boolean isPartnerLinkVisible(java.lang.String partnerLinkName)
ExtensionContextisPartnerLinkVisible in interface ExtensionContextpartnerLinkName - name of the partner linkpublic PartnerLinkInstance getPartnerLinkInstance(OPartnerLink partnerLink) throws FaultException
ExtensionContextgetPartnerLinkInstance in interface ExtensionContextpartnerLink - partnerLinkFaultException - FaultExceptionpublic OProcess getProcessModel()
ExtensionContextgetProcessModel in interface ExtensionContextpublic void setCorrelationValues(java.lang.String[] values)
setCorrelationValues in interface ExtensionContextvalues - valuespublic java.lang.String[] getCorrelationValues()
getCorrelationValues in interface ExtensionContextpublic java.lang.String getCorrelatorId()
getCorrelatorId in interface ExtensionContextpublic void setCorrelatorId(java.lang.String correlatorId)
ExtensionContextsetCorrelatorId in interface ExtensionContextcorrelatorId - partnerlink.operationpublic org.w3c.dom.Node getPartData(org.w3c.dom.Element element,
java.lang.String variable)
getPartData in interface ExtensionContextpublic TerminationChannel getTerminationChannel()
getTerminationChannel in interface ExtensionContextpublic ParentScopeChannel getParentScopeChannel()
getParentScopeChannel in interface ExtensionContextpublic ScopeFrame getScopeFrame()
Copyright © 2021 WSO2. All Rights Reserved.