1 package org.jbpm.bpel.xml; 2 3 import java.util.Iterator ; 4 5 import org.w3c.dom.Element ; 6 7 import org.jbpm.bpel.def.Activity; 8 import org.jbpm.bpel.def.Sequence; 9 10 16 public class SequenceReader extends ActivityReader { 17 18 protected Activity createActivity() { 19 return new Sequence(); 20 } 21 22 protected void readActivity(Activity activity, Element element) { 23 Sequence sequence = (Sequence) activity; 24 Iterator activityElemIt = bpelReader.getActivityElements(element); 25 while (activityElemIt.hasNext()) { 26 Element activityElem = (Element ) activityElemIt.next(); 27 bpelReader.readActivity(activityElem, sequence); 28 } 29 } 30 } 31 | Popular Tags |