On 15/09/2014 21:56, Berch Gularte wrote:
I was reading the source code (https://github.com/myGrid/taverna-server)
and I didn't find the parser that converts the xml to java objects,
please could someone tell me where is the parser?

For the XML documents that are used in the interface, the XML parser and serializer are both implemented using JAXB, which Java comes with a standard implementation of. This is handled by the Web application framework (Apache CXF) for us, guided by annotations on the model classes.

For the workflows themselves, there are two parsers:

1. There is a very simple parser in the ContentsDescriptorBuilder class, but that's really just using XPath to pick out the values of interest.

https://github.com/taverna/taverna-server/blob/2.5/server-webapp/src/main/java/org/taverna/server/master/ContentsDescriptorBuilder.java

 2. The execution engine has a non-trivial parser which is mostly in here:

https://github.com/taverna/taverna-engine-core/tree/maintenance/workflowmodel-impl/src/main/java/net/sf/taverna/t2/workflowmodel/serialization/xml

If you're writing new code, you're probably better off using the Scufl2 parser so that your code will continue to work as we migrate to Taverna3, though then you're going to be working with the Scufl2 model.
  https://github.com/taverna/taverna-scufl2

It's hard to give much more information without knowing what you're trying to do with what you're discovering. ;-)

Donal.

<<attachment: donal_k_fellows.vcf>>

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
taverna-hackers mailing list
taverna-hackers@lists.sourceforge.net
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to