+ "/{http://www.wfmc.org/2002/XPDL1.0}WorkflowProcess"
+ "/{http://www.wfmc.org/2002/XPDL1.0}Activities"
+ "/{http://www.wfmc.org/2002/XPDL1.0}Activity"
+ "/{http://www.wfmc.org/2002/XPDL1.0}TransitionRestrictions";
XMLReader reader = getReader();
HandlerStack stack = new HandlerStack
(reader, new StackedHandler() {
public void startElement
(String uri, String localName, String qName,
Attributes atts) throws SAXException {
outerTags.add (qName);
if (qName.equals ("TransitionRestrictions")) {
assertTrue (currentPath().equals(expPath));
getStack().push (new SubHandler());
}
}
});
stack.setContextData ("innerTags", innerTags);
reader.parse
(new InputSource
(Sax.class.getResourceAsStream("/util/testXPDL.xml")));
assertTrue (outerTags.contains ("Activity"));
assertTrue (outerTags.contains ("TransitionRestrictions"));