|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ode.bpel.runtime.ExtensionContextImpl
public class ExtensionContextImpl
| Constructor Summary | |
|---|---|
ExtensionContextImpl(org.apache.ode.bpel.runtime.ActivityInfo activityInfo,
ScopeFrame scopeFrame,
BpelRuntimeContext context)
|
|
| Method Summary | |
|---|---|
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. |
| 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.runtime.ActivityInfo activityInfo,
ScopeFrame scopeFrame,
BpelRuntimeContext context)
| Method Detail |
|---|
public void setBpelRuntimeContext(BpelRuntimeContext context)
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 - FaultException
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 - FaultException
public org.w3c.dom.Node readVariable(OScope.Variable variable)
throws FaultException
ExtensionContext
readVariable in interface ExtensionContextvariable - variable to read
Node
FaultException - FaultException
public void writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
throws FaultException
ExtensionContext
writeVariable in interface ExtensionContextvariableName - variable to writevalue - the value to be stored into the variable
FaultException - FaultException
public org.w3c.dom.Node readVariable(java.lang.String variableName)
throws FaultException
ExtensionContext
readVariable in interface ExtensionContextvariableName - variable to read
Node
FaultException - FaultException
public void writeVariable(OScope.Variable variable,
org.w3c.dom.Node value)
throws FaultException
ExtensionContext
writeVariable in interface ExtensionContextvariable - variable to writevalue - the value to be stored into the variable
FaultException - FaultExceptionpublic 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(java.lang.String cid)
ExtensionContext
complete in interface ExtensionContextcid - id
public void completeWithFault(java.lang.String cid,
java.lang.Throwable t)
ExtensionContext
completeWithFault in interface ExtensionContextcid - idt - an exception to be reported as the fault cause.
public void completeWithFault(java.lang.String cid,
FaultException ex)
ExtensionContext
completeWithFault in interface ExtensionContextcid - idex - a fault.public BpelRuntimeContext 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 ExtensionContextmsg - Message
public PartnerLinkInstance getPartnerLinkInstance(java.lang.String partnerLinkName)
throws FaultException
ExtensionContext
getPartnerLinkInstance in interface ExtensionContextpartnerLinkName - name of the partner link
FaultException - FaultExceptionpublic OPartnerLink getVisiblePartnerLink(java.lang.String partnerLinkName)
public boolean isPartnerLinkVisible(java.lang.String partnerLinkName)
ExtensionContext
isPartnerLinkVisible in interface ExtensionContextpartnerLinkName - name of the partner link
public PartnerLinkInstance getPartnerLinkInstance(OPartnerLink partnerLink)
throws FaultException
ExtensionContext
getPartnerLinkInstance in interface ExtensionContextpartnerLink - partnerLink
FaultException - FaultExceptionpublic OProcess getProcessModel()
ExtensionContext
getProcessModel 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)
ExtensionContext
setCorrelatorId in interface ExtensionContextcorrelatorId - partnerlink.operation
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||