|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtensionContext
Context for executing extension activities or extension assign operations.
Implementations of the ExtensionOperation class
use this interface to access BPEL variables, property sets and link status.
All ExtensionOperation implementations must complete with
complete(), completeWithFault(...).
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 read
Node
FaultException - FaultException
org.w3c.dom.Node readVariable(java.lang.String variableName)
throws FaultException
variableName - variable to read
Node
FaultException - FaultException
void writeVariable(OScope.Variable variable,
org.w3c.dom.Node value)
throws FaultException,
ExternalVariableModuleException
variable - variable to writevalue - the value to be stored into the variable
FaultException - FaultException
ExternalVariableModuleException - ExternalVariableModuleException
void writeVariable(java.lang.String variableName,
org.w3c.dom.Node value)
throws FaultException
variableName - variable to writevalue - the value to be stored into the variable
FaultException - FaultException
ExternalVariableModuleException - ExternalVariableModuleException
java.lang.String readMessageProperty(OScope.Variable variable,
OProcess.OProperty property)
throws FaultException
variable - variable containing propertyproperty - property to read
FaultException - 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 - id
void 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 link
FaultException - FaultExceptionboolean isPartnerLinkVisible(java.lang.String partnerLinkName)
partnerLinkName - name of the partner link
PartnerLinkInstance getPartnerLinkInstance(OPartnerLink partnerLink)
throws FaultException
partnerLink - partnerLink
FaultException - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||