Hi everyone,
I'm writing yet another template-based BPTS file, and this time I have to do some date arithmetic. Since XPath 1.0 can't do it and Velocity doesn't allow for creating new objects on the fly, I'm stuck. I could have added a Calendar object with the current date to the default BPELUnit template variables, but I don't think I should be coupling BPELUnit to my particular problem.
I've had a look around, and it seems that VelocityTools extends Velocity with several tools for handling XML documents, dates, URLs and other useful things:
http://velocity.apache.org/tools/releases/2.0/summary.htmlWe would be using only the generic tools (standalone usage):
http://velocity.apache.org/tools/releases/2.0/standalone.htmlIt also lets users extend it with new tools or configure them by adding an appropriate tools.xml file in the classpath, so we could extend BPELUnit's templating functionality from our tools, without having to change BPELUnit any further.
Do you think we could integrate VelocityTools 2.0 into BPELUnit, and upgrade Velocity to the latest stable release while we're at it?
Cheers,
Antonio