public class MockExtensionContext extends java.lang.Object implements ExtensionContext
| Modifier and Type | Field and Description |
|---|---|
boolean |
completed |
java.net.URI |
duDir |
FaultException |
fault |
boolean |
faulted |
java.util.List<java.lang.String> |
msgs |
| Constructor and Description |
|---|
MockExtensionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(java.lang.String cid) |
void |
completeWithFault(java.lang.String cid,
FaultException fault) |
void |
completeWithFault(java.lang.String cid,
java.lang.Throwable t) |
java.lang.String |
getActivityName() |
java.lang.String[] |
getCorrelationValues() |
java.lang.String |
getCorrelatorId() |
java.net.URI |
getDUDir() |
BpelRuntimeContext |
getInternalInstance() |
OActivity |
getOActivity() |
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() |
OProcess |
getProcessModel()
Get the Process Model
|
TerminationChannel |
getTerminationChannel() |
java.util.Map<java.lang.String,org.w3c.dom.Node> |
getVariables() |
java.util.Map<java.lang.String,OScope.Variable> |
getVisibleVariables() |
boolean |
isLinkActive(OLink olink) |
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) |
void |
printToConsole(java.lang.String msg) |
java.lang.String |
readMessageProperty(OScope.Variable variable,
OProcess.OProperty property) |
org.w3c.dom.Node |
readVariable(OScope.Variable variable) |
org.w3c.dom.Node |
readVariable(java.lang.String variableName) |
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) |
void |
writeVariable(java.lang.String variableName,
org.w3c.dom.Node value) |
public boolean completed
public boolean faulted
public FaultException fault
public java.net.URI duDir
public java.util.List<java.lang.String> msgs
public java.util.Map<java.lang.String,org.w3c.dom.Node> getVariables()
public java.lang.Long getProcessId()
getProcessId in interface ExtensionContextpublic org.w3c.dom.Node readVariable(java.lang.String variableName)
throws FaultException
readVariable in interface ExtensionContextFaultExceptionpublic void writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
throws FaultException
writeVariable in interface ExtensionContextFaultExceptionpublic boolean isVariableVisible(java.lang.String varName)
isVariableVisible in interface ExtensionContextpublic java.lang.String getActivityName()
getActivityName in interface ExtensionContextpublic OActivity getOActivity()
getOActivity in interface ExtensionContextpublic java.util.Map<java.lang.String,OScope.Variable> getVisibleVariables() throws FaultException
getVisibleVariables in interface ExtensionContextFaultExceptionpublic boolean isLinkActive(OLink olink) throws FaultException
FaultExceptionpublic java.lang.String readMessageProperty(OScope.Variable variable, OProcess.OProperty property) throws FaultException
readMessageProperty in interface ExtensionContextFaultExceptionpublic org.w3c.dom.Node readVariable(OScope.Variable variable) throws FaultException
readVariable in interface ExtensionContextFaultExceptionpublic void writeVariable(OScope.Variable variable, org.w3c.dom.Node value) throws FaultException
writeVariable in interface ExtensionContextFaultExceptionpublic void complete(java.lang.String cid)
complete in interface ExtensionContextpublic void completeWithFault(java.lang.String cid,
java.lang.Throwable t)
completeWithFault in interface ExtensionContextpublic void completeWithFault(java.lang.String cid,
FaultException fault)
completeWithFault in interface ExtensionContextpublic BpelRuntimeContext getInternalInstance()
getInternalInstance in interface ExtensionContextpublic PartnerLinkInstance getPartnerLinkInstance(java.lang.String partnerLinkName) throws FaultException
getPartnerLinkInstance in interface ExtensionContextpartnerLinkName - name of the partner linkFaultExceptionpublic boolean isPartnerLinkVisible(java.lang.String partnerLinkName)
isPartnerLinkVisible in interface ExtensionContextpartnerLinkName - name of the partner linkpublic PartnerLinkInstance getPartnerLinkInstance(OPartnerLink partnerLink) throws FaultException
getPartnerLinkInstance in interface ExtensionContextpartnerLink - FaultExceptionpublic OProcess getProcessModel()
getProcessModel in interface ExtensionContextpublic void setCorrelationValues(java.lang.String[] values)
setCorrelationValues in interface ExtensionContextvalues - valuespublic java.lang.String[] getCorrelationValues()
getCorrelationValues in interface ExtensionContextpublic void setCorrelatorId(java.lang.String correlatorId)
setCorrelatorId in interface ExtensionContextcorrelatorId - partnerlink.operationpublic java.lang.String getCorrelatorId()
getCorrelatorId in interface ExtensionContextpublic 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 java.net.URI getDUDir()
getDUDir in interface ExtensionContextpublic void printToConsole(java.lang.String msg)
printToConsole in interface ExtensionContextCopyright © 2022 WSO2. All Rights Reserved.