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 CompilerContext
public OScope.Variable resolveVariable(java.lang.String varName)
resolveVariable
in interface CompilerContext
public java.util.List<OScope.Variable> getAccessibleVariables()
getAccessibleVariables
in interface CompilerContext
public OScope.Variable resolveMessageVariable(java.lang.String inputVar) throws CompilationException
resolveMessageVariable
in interface CompilerContext
CompilationException
public OScope.Variable resolveMessageVariable(java.lang.String inputVar, javax.xml.namespace.QName messageType) throws CompilationException
resolveMessageVariable
in interface CompilerContext
CompilationException
public OProcess.OProperty resolveProperty(javax.xml.namespace.QName name)
resolveProperty
in interface CompilerContext
public OProcess.OPropertyAlias resolvePropertyAlias(OScope.Variable variable, javax.xml.namespace.QName propertyName)
resolvePropertyAlias
in interface CompilerContext
public OScope resolveCompensatableScope(java.lang.String scopeToCompensate) throws CompilationException
resolveCompensatableScope
in interface CompilerContext
CompilationException
public java.lang.String getSourceLocation()
getSourceLocation
in interface CompilerContext
public OScope.CorrelationSet resolveCorrelationSet(java.lang.String csetName)
resolveCorrelationSet
in interface CompilerContext
public OMessageVarType resolveMessageType(javax.xml.namespace.QName messageType)
public OXsdTypeVarType resolveXsdType(javax.xml.namespace.QName typeName) throws CompilationException
resolveXsdType
in interface CompilerContext
CompilationException
public OMessageVarType.Part resolvePart(OScope.Variable var, java.lang.String partname)
resolvePart
in interface CompilerContext
public OMessageVarType.Part resolveHeaderPart(OScope.Variable var, java.lang.String partname)
resolveHeaderPart
in interface CompilerContext
public PartnerLinkType resolvePartnerLinkType(javax.xml.namespace.QName partnerLinkType)
public OPartnerLink resolvePartnerLink(java.lang.String name)
resolvePartnerLink
in interface CompilerContext
public javax.wsdl.Operation resolvePartnerRoleOperation(OPartnerLink partnerLink, java.lang.String operationName)
resolvePartnerRoleOperation
in interface CompilerContext
public javax.wsdl.Operation resolveMyRoleOperation(OPartnerLink partnerLink, java.lang.String operationName)
resolveMyRoleOperation
in interface CompilerContext
public OExpression constantExpr(boolean value)
OExpression
expression that returns a constant
value.constantExpr
in interface CompilerContext
value
- constant value to returnOExpression
returning a constant value.public OLValueExpression compileLValueExpr(Expression expression) throws CompilationException
compileLValueExpr
in interface CompilerContext
CompilationException
public OLValueExpression compileLValueExpr(Expression expression, OVarType rootNodeType, java.lang.Object requestedResultType, java.lang.Object[] resultType) throws CompilationException
compileLValueExpr
in interface CompilerContext
CompilationException
public OExpression compileJoinCondition(Expression expression) throws CompilationException
compileJoinCondition
in interface CompilerContext
CompilationException
public OExpression compileExpr(Expression expression) throws CompilationException
compileExpr
in interface CompilerContext
CompilationException
public OExpression compileExpr(Expression expression, OVarType rootNodeType, java.lang.Object requestedResultType, java.lang.Object[] resultType) throws CompilationException
compileExpr
in interface CompilerContext
CompilationException
public OExpression compileExpr(java.lang.String expr, NSContext nc)
CompilerContext
compileExpr
in interface CompilerContext
public OProcess getOProcess() throws CompilationException
getOProcess
in interface CompilerContext
CompilationException
public void recoveredFromError(SourceLocation where, CompilationException bce) throws CompilationException
recoveredFromError
in interface CompilerContext
CompilationException
public static long getVersion(java.lang.String dirName)
public OProcess compile(Process process, ResourceFinder rf, long version) throws CompilationException
CompilationException
public OActivity compile(Activity source)
compile
in interface CompilerContext
public OScope compileSLC(ScopeLikeActivity source, OScope.Variable[] variables)
compileSLC
in interface CompilerContext
public OActivity getCurrent()
getCurrent
in interface CompilerContext
public void compile(OActivity context, BpelObject source, java.lang.Runnable run)
public OXslSheet compileXslt(java.lang.String docStrUri) throws CompilationException
compileXslt
in interface CompilerContext
CompilationException
public boolean isPartnerLinkAssigned(java.lang.String plink)
isPartnerLinkAssigned
in interface CompilerContext
public 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.Exception
public java.util.List<OActivity> getActivityStack()
getActivityStack
in interface CompilerContext
public java.util.Map<java.net.URI,javax.xml.transform.Source> getSchemaSources()
getSchemaSources
in interface CompilerContext
public java.net.URI getBaseResourceURI()
getBaseResourceURI
in interface CompilerContext
java.io.IOException
java.net.MalformedURLException