public abstract class BpelCompiler extends java.lang.Object implements CompilerContext
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
__log
Class-severity logger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWsdlImport(java.net.URI from,
java.net.URI wsdlImport,
SourceLocation sloc) |
void |
addXsdImport(java.net.URI from,
java.net.URI location,
SourceLocation sloc) |
OActivity |
compile(Activity source) |
void |
compile(OActivity context,
BpelObject source,
java.lang.Runnable run) |
OProcess |
compile(Process process,
ResourceFinder rf,
long version)
Compile a process.
|
OExpression |
compileExpr(Expression expression) |
OExpression |
compileExpr(Expression expression,
OVarType rootNodeType,
java.lang.Object requestedResultType,
java.lang.Object[] resultType) |
OExpression |
compileExpr(java.lang.String expr,
NSContext nc)
BPEL 1.1 legacy.
|
OExpression |
compileJoinCondition(Expression expression) |
OLValueExpression |
compileLValueExpr(Expression expression) |
OLValueExpression |
compileLValueExpr(Expression expression,
OVarType rootNodeType,
java.lang.Object requestedResultType,
java.lang.Object[] resultType) |
OScope |
compileSLC(ScopeLikeActivity source,
OScope.Variable[] variables) |
OXslSheet |
compileXslt(java.lang.String docStrUri) |
OExpression |
constantExpr(boolean value)
Produce a boolean
OExpression expression that returns a constant
value. |
java.util.List<OScope.Variable> |
getAccessibleVariables() |
java.util.List<OActivity> |
getActivityStack() |
java.net.URI |
getBaseResourceURI()
Retrieves the base URI that the BPEL Process execution contextis running relative to.
|
protected abstract java.lang.String |
getBpwsNamespace() |
CompileListener |
getCompileListener() |
OActivity |
getCurrent() |
protected abstract java.lang.String |
getDefaultExpressionLanguage() |
OProcess |
getOProcess() |
Process |
getProcessDef()
Get the process definition.
|
java.util.Map<java.net.URI,javax.xml.transform.Source> |
getSchemaSources() |
java.lang.String |
getSourceLocation() |
static long |
getVersion(java.lang.String dirName) |
javax.wsdl.Definition[] |
getWsdlDefinitions() |
boolean |
isPartnerLinkAssigned(java.lang.String plink) |
void |
recoveredFromError(SourceLocation where,
CompilationException bce) |
protected void |
registerActivityCompiler(java.lang.Class defClass,
ActivityGenerator generator) |
protected void |
registerExpressionLanguage(java.lang.String expLangUri,
ExpressionCompiler expressionCompiler) |
protected void |
registerExpressionLanguage(java.lang.String expLangUri,
java.lang.String classname) |
OScope |
resolveCompensatableScope(java.lang.String scopeToCompensate) |
OScope.CorrelationSet |
resolveCorrelationSet(java.lang.String csetName) |
OMessageVarType.Part |
resolveHeaderPart(OScope.Variable var,
java.lang.String partname) |
OLink |
resolveLink(java.lang.String linkName) |
OMessageVarType |
resolveMessageType(javax.xml.namespace.QName messageType) |
OScope.Variable |
resolveMessageVariable(java.lang.String inputVar) |
OScope.Variable |
resolveMessageVariable(java.lang.String inputVar,
javax.xml.namespace.QName messageType) |
javax.wsdl.Operation |
resolveMyRoleOperation(OPartnerLink partnerLink,
java.lang.String operationName) |
OMessageVarType.Part |
resolvePart(OScope.Variable var,
java.lang.String partname) |
OPartnerLink |
resolvePartnerLink(java.lang.String name) |
PartnerLinkType |
resolvePartnerLinkType(javax.xml.namespace.QName partnerLinkType) |
javax.wsdl.Operation |
resolvePartnerRoleOperation(OPartnerLink partnerLink,
java.lang.String operationName) |
javax.wsdl.PortType |
resolvePortType(javax.xml.namespace.QName portTypeName) |
OProcess.OProperty |
resolveProperty(javax.xml.namespace.QName name) |
OProcess.OPropertyAlias |
resolvePropertyAlias(OScope.Variable variable,
javax.xml.namespace.QName propertyName) |
OScope.Variable |
resolveVariable(java.lang.String varName) |
OXsdTypeVarType |
resolveXsdType(javax.xml.namespace.QName typeName) |
void |
setCompileListener(CompileListener compileListener) |
void |
setCustomProperties(java.util.Map<javax.xml.namespace.QName,org.w3c.dom.Node> customProperties) |
void |
setResourceFinder(ResourceFinder finder) |
public void addWsdlImport(java.net.URI from,
java.net.URI wsdlImport,
SourceLocation sloc)
public void addXsdImport(java.net.URI from,
java.net.URI location,
SourceLocation sloc)
public void setResourceFinder(ResourceFinder finder)
public void setCompileListener(CompileListener compileListener)
public CompileListener getCompileListener()
public void setCustomProperties(java.util.Map<javax.xml.namespace.QName,org.w3c.dom.Node> customProperties)
public Process getProcessDef()
public javax.wsdl.PortType resolvePortType(javax.xml.namespace.QName portTypeName)
public OLink resolveLink(java.lang.String linkName)
resolveLink in interface CompilerContextpublic OScope.Variable resolveVariable(java.lang.String varName)
resolveVariable in interface CompilerContextpublic java.util.List<OScope.Variable> getAccessibleVariables()
getAccessibleVariables in interface CompilerContextpublic OScope.Variable resolveMessageVariable(java.lang.String inputVar) throws CompilationException
resolveMessageVariable in interface CompilerContextCompilationExceptionpublic OScope.Variable resolveMessageVariable(java.lang.String inputVar, javax.xml.namespace.QName messageType) throws CompilationException
resolveMessageVariable in interface CompilerContextCompilationExceptionpublic OProcess.OProperty resolveProperty(javax.xml.namespace.QName name)
resolveProperty in interface CompilerContextpublic OProcess.OPropertyAlias resolvePropertyAlias(OScope.Variable variable, javax.xml.namespace.QName propertyName)
resolvePropertyAlias in interface CompilerContextpublic OScope resolveCompensatableScope(java.lang.String scopeToCompensate) throws CompilationException
resolveCompensatableScope in interface CompilerContextCompilationExceptionpublic java.lang.String getSourceLocation()
getSourceLocation in interface CompilerContextpublic OScope.CorrelationSet resolveCorrelationSet(java.lang.String csetName)
resolveCorrelationSet in interface CompilerContextpublic OMessageVarType resolveMessageType(javax.xml.namespace.QName messageType)
public OXsdTypeVarType resolveXsdType(javax.xml.namespace.QName typeName) throws CompilationException
resolveXsdType in interface CompilerContextCompilationExceptionpublic OMessageVarType.Part resolvePart(OScope.Variable var, java.lang.String partname)
resolvePart in interface CompilerContextpublic OMessageVarType.Part resolveHeaderPart(OScope.Variable var, java.lang.String partname)
resolveHeaderPart in interface CompilerContextpublic PartnerLinkType resolvePartnerLinkType(javax.xml.namespace.QName partnerLinkType)
public OPartnerLink resolvePartnerLink(java.lang.String name)
resolvePartnerLink in interface CompilerContextpublic javax.wsdl.Operation resolvePartnerRoleOperation(OPartnerLink partnerLink, java.lang.String operationName)
resolvePartnerRoleOperation in interface CompilerContextpublic javax.wsdl.Operation resolveMyRoleOperation(OPartnerLink partnerLink, java.lang.String operationName)
resolveMyRoleOperation in interface CompilerContextpublic OExpression constantExpr(boolean value)
OExpression expression that returns a constant
value.constantExpr in interface CompilerContextvalue - constant value to returnOExpression returning a constant value.public OLValueExpression compileLValueExpr(Expression expression) throws CompilationException
compileLValueExpr in interface CompilerContextCompilationExceptionpublic OLValueExpression compileLValueExpr(Expression expression, OVarType rootNodeType, java.lang.Object requestedResultType, java.lang.Object[] resultType) throws CompilationException
compileLValueExpr in interface CompilerContextCompilationExceptionpublic OExpression compileJoinCondition(Expression expression) throws CompilationException
compileJoinCondition in interface CompilerContextCompilationExceptionpublic OExpression compileExpr(Expression expression) throws CompilationException
compileExpr in interface CompilerContextCompilationExceptionpublic OExpression compileExpr(Expression expression, OVarType rootNodeType, java.lang.Object requestedResultType, java.lang.Object[] resultType) throws CompilationException
compileExpr in interface CompilerContextCompilationExceptionpublic OExpression compileExpr(java.lang.String expr, NSContext nc)
CompilerContextcompileExpr in interface CompilerContextpublic OProcess getOProcess() throws CompilationException
getOProcess in interface CompilerContextCompilationExceptionpublic void recoveredFromError(SourceLocation where, CompilationException bce) throws CompilationException
recoveredFromError in interface CompilerContextCompilationExceptionpublic static long getVersion(java.lang.String dirName)
public OProcess compile(Process process, ResourceFinder rf, long version) throws CompilationException
CompilationExceptionpublic OActivity compile(Activity source)
compile in interface CompilerContextpublic OScope compileSLC(ScopeLikeActivity source, OScope.Variable[] variables)
compileSLC in interface CompilerContextpublic OActivity getCurrent()
getCurrent in interface CompilerContextpublic void compile(OActivity context, BpelObject source, java.lang.Runnable run)
public OXslSheet compileXslt(java.lang.String docStrUri) throws CompilationException
compileXslt in interface CompilerContextCompilationExceptionpublic boolean isPartnerLinkAssigned(java.lang.String plink)
isPartnerLinkAssigned in interface CompilerContextpublic javax.wsdl.Definition[] getWsdlDefinitions()
protected void registerActivityCompiler(java.lang.Class defClass,
ActivityGenerator generator)
protected abstract java.lang.String getDefaultExpressionLanguage()
protected abstract java.lang.String getBpwsNamespace()
protected void registerExpressionLanguage(java.lang.String expLangUri,
ExpressionCompiler expressionCompiler)
protected void registerExpressionLanguage(java.lang.String expLangUri,
java.lang.String classname)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<OActivity> getActivityStack()
getActivityStack in interface CompilerContextpublic java.util.Map<java.net.URI,javax.xml.transform.Source> getSchemaSources()
getSchemaSources in interface CompilerContextpublic java.net.URI getBaseResourceURI()
getBaseResourceURI in interface CompilerContextjava.io.IOExceptionjava.net.MalformedURLException