|
Hi (again). :) My comments below. Dan Becker a écrit : Vincent Zurczak wrote:Actually, in STP, the validation is made according to the SCA meta-model. The Tuscany SCA schemas only define the meta-model extension for Tuscany elements (mainly implementations, bindings and interfaces). The SCA core elements are part of the basis of the meta-model. Simon mentions 3 steps to loading a composite. Each one of these steps is a candidate for validation:The SCA meta-model is based on the SCA specifications and implemented with EMF. It deals with all of the things you mentionned. This meta-model is used in the SCA Composite designer (the graphical composite editor from STP). Besides, the SCA meta-model defines additional constraints which are listed here. [0] Among these constraints, the following ones are already implemented in the plug-in "org.eclipse.stp.sca.validation":
Besides, the SCA meta-model can be used inside Eclipse but also in standalone (it is made up of 2 or 3 jars). See in the plug-in "org.eclipse.stp.sca.tests" for an example (class "org.eclipse.stp.sca.tests.ScaExample"). About the validator I mentionned in my first mail, it mainly relies on this model for the validation. >> - resolve the composite - find all the things that the composite refers to such as Java component implementation files and WSDL interface definitions.Completing the model instance with resources (implementation, interfaces) is in progress. Although we only deal with Java implementations and interfaces for the moment. We have a new component in STP to introspect Java code and complete model instances. And I am working on WSDL support (e.g. be able in the tools to have java implementations and reference any web service - simply starting from its WSDL). >> - build the composite - fix up the internal model to ensure that it is valid and ready to be activated as an SCA composite application.Once the SCA model is loaded, it is very easy to validate it using EMF mechanisms. It takes care of structural constraints (e.g. as described in XML schemas) but also of extra-constraints defined on the meta-model (typically, things you can't describe in XSDs, unless using annotations and programs like Schematron). >From the description and validation points of view, EMF is very powerful. In STP, we are very interested in improving our tools. And handle validation is important and expected by users. We also try to make tools that work with most of the available platforms. By covering every platform specifics and staying in touch with them. Now, if you are interested to contribute and improve the Tuscany support in STP SCA Tools (e.g. on the validation part), we would be glad to work with you. Contributions and contributors are welcome. I would also understand if you decided to rely on Tuscany platform elements to make it, since you are probably in a more advanced stage of development. Best regards, Vincent Zurczak. [ 0 ] : http://wiki.eclipse.org/STP/SCA_Component/SCA_Composite_Meta_Model#Additional_validation_rules -- Vincent Zurczak EBM WebSourcing +33 (0) 4 38 12 16 77 |
- Tool for composite file validation Rohan Sahgal
- Re: Tool for composite file validation Luciano Resende
- Re: Tool for composite file validation Rohan Sahgal
- Re: Tool for composite file validation Simon Laws
- Re: Tool for composite file validation Vincent Zurczak
- Re: Tool for composite file validation Dan Becker
- Re: Tool for composite file validation Vincent Zurczak
- Re: Tool for composite file validati... Dan Becker
