org.apache.tuscany.sca.implementation.bpel.ode
Class TuscanyProcessConfImpl

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.bpel.ode.TuscanyProcessConfImpl

public class TuscanyProcessConfImpl
extends java.lang.Object

A Tuscany implementation of the ODE Process Conf


Constructor Summary
TuscanyProcessConfImpl(BPELImplementation theImplementation)
          Constructor for the ProcessConf implementation
 
Method Summary
 java.net.URI getBaseURI()
          Returns the URI for the directory containing the BPEL process
 java.lang.String getBpelDocument()
          Returns a String containing the (local) name of the file containing the BPEL process
 java.io.InputStream getCBPInputStream()
          Returns an InputStream containing the Compiled BPEL Process (CBP)
 Definition getDefinitionForPortType(javax.xml.namespace.QName portTypeName)
          Return the WSDL Definition for a given PortType
 Definition getDefinitionForService(javax.xml.namespace.QName serviceQName)
          Returns a WSDL Definition for a given Service QName 22/05/2008 - it is very unclear what this service QName is really meant to be.
 java.util.Date getDeployDate()
          Returns the date of deployment of the process - for SCA returns the date at which this object was created
 java.lang.String getDeployer()
          Returns userid of deployer - always "SCA Tuscany" for Tuscany...
 java.util.List<org.w3c.dom.Element> getExtensionElement(javax.xml.namespace.QName arg0)
           
 java.util.List<java.io.File> getFiles()
          Returns a list of the files in the directory containing the BPEL Process
 java.util.Map<java.lang.String,Endpoint> getInvokeEndpoints()
          Returns a Map containing all the "invoke endpoints" - for which read "SCA references" The map is keyed by partnerLink name and holds Endpoint objects TODO deal with service callbacks on bidirectional services
 java.util.List<java.lang.String> getMexInterceptors(javax.xml.namespace.QName processId)
           
 java.lang.String getPackage()
          Returns the name of the directory containing the BPEL files
 javax.xml.namespace.QName getProcessId()
          Return the BPEL Process ID - which is the Process QName appended "-versionnumber"
 java.util.Map<javax.xml.namespace.QName,org.w3c.dom.Node> getProperties()
          TODO - What are properties?
 java.util.Map<java.lang.String,Endpoint> getProvideEndpoints()
          Returns a Map containing all the "provide endpoints" - for which read "SCA services" The map is keyed by partnerLink name and holds Endpoint objects TODO deal with reference callbacks on bidirectional references
 ProcessState getState()
          Return the process state
 javax.xml.namespace.QName getType()
          Returns the QName of the BPEL process
 long getVersion()
          Gets the process Version number - current code does not have versions for BPEL processes and always returns "1"
 boolean isEventEnabled(java.util.List<java.lang.String> scopeNames, TYPE type)
          Returns true if the supplied event type is enabled for any of the scopes in the provided List.
 boolean isTransient()
          Returns whether the process is persisted in the store Returns false for SCA configuration - returning true causes problems in communicating with the BPEL process
 void setTransient(boolean t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TuscanyProcessConfImpl

public TuscanyProcessConfImpl(BPELImplementation theImplementation)
Constructor for the ProcessConf implementation

Parameters:
theImplementation - the BPEL implementation for which this is the ProcessConf
Method Detail

getBaseURI

public java.net.URI getBaseURI()
Returns the URI for the directory containing the BPEL process


getBpelDocument

public java.lang.String getBpelDocument()
Returns a String containing the (local) name of the file containing the BPEL process


getCBPInputStream

public java.io.InputStream getCBPInputStream()
Returns an InputStream containing the Compiled BPEL Process (CBP)


getDefinitionForPortType

public Definition getDefinitionForPortType(javax.xml.namespace.QName portTypeName)
Return the WSDL Definition for a given PortType

Parameters:
portTypeName - - the QName of the PortType

getDefinitionForService

public Definition getDefinitionForService(javax.xml.namespace.QName serviceQName)
Returns a WSDL Definition for a given Service QName 22/05/2008 - it is very unclear what this service QName is really meant to be. From the handling of the deploy.xml file by the current ODE code, it seems that the key link is from the Service QName to the PartnerLink name (done in the deploy.xml file). The curious part about this is that the QName for the service is ONLY defined in deploy.xml file and does not appear to relate to anything else, except for the QName of the PartnerLink The PartnerLink name is the same as the name of the SCA service (or reference) which in turn points at the PartnerLinkType which in turn points at an (WSDL) interface definition.


getDeployDate

public java.util.Date getDeployDate()
Returns the date of deployment of the process - for SCA returns the date at which this object was created


getDeployer

public java.lang.String getDeployer()
Returns userid of deployer - always "SCA Tuscany" for Tuscany...


getFiles

public java.util.List<java.io.File> getFiles()
Returns a list of the files in the directory containing the BPEL Process


getInvokeEndpoints

public java.util.Map<java.lang.String,Endpoint> getInvokeEndpoints()
Returns a Map containing all the "invoke endpoints" - for which read "SCA references" The map is keyed by partnerLink name and holds Endpoint objects TODO deal with service callbacks on bidirectional services


getPackage

public java.lang.String getPackage()
Returns the name of the directory containing the BPEL files


getProcessId

public javax.xml.namespace.QName getProcessId()
Return the BPEL Process ID - which is the Process QName appended "-versionnumber"


getProperties

public java.util.Map<javax.xml.namespace.QName,org.w3c.dom.Node> getProperties()
TODO - What are properties?


getProvideEndpoints

public java.util.Map<java.lang.String,Endpoint> getProvideEndpoints()
Returns a Map containing all the "provide endpoints" - for which read "SCA services" The map is keyed by partnerLink name and holds Endpoint objects TODO deal with reference callbacks on bidirectional references


getState

public ProcessState getState()
Return the process state


getType

public javax.xml.namespace.QName getType()
Returns the QName of the BPEL process


getVersion

public long getVersion()
Gets the process Version number - current code does not have versions for BPEL processes and always returns "1"


isEventEnabled

public boolean isEventEnabled(java.util.List<java.lang.String> scopeNames,
                              TYPE type)
Returns true if the supplied event type is enabled for any of the scopes in the provided List. These events are "ODE Execution Events" and there is a definition of them on this page: http://ode.apache.org/user-guide.html#UserGuide-ProcessDeployment For the present Tuscany does not support manipulating the event enablement and always returns that the event is not enabled

Parameters:
scopeNames - - list of BPEL process Scope names
type - - the event type

isTransient

public boolean isTransient()
Returns whether the process is persisted in the store Returns false for SCA configuration - returning true causes problems in communicating with the BPEL process


getMexInterceptors

public java.util.List<java.lang.String> getMexInterceptors(javax.xml.namespace.QName processId)

setTransient

public void setTransient(boolean t)

getExtensionElement

public java.util.List<org.w3c.dom.Element> getExtensionElement(javax.xml.namespace.QName arg0)