Usually, schema validation in BusinessWorks is done pretty straight forward. You get an xml, known the schema and just run a ParseXml activity. The problem becomes more complicated if you have to validate a xml which you have no knowledge of which schema it derived from. In my case, I had a folder full of schemas which I had to validate the incoming xml against.
To achieve this,I came up with the following solution. This way, the java activity validates against any in the project registered schema.
content of the java code activity:
- connecting nodejs to Tibco EMS
- getting monthly throughput stats of a TIBCO EMS instance
- reset the TIBCO EMS statistics