1 package org.jbpm.bpel.xml; 2 3 import org.w3c.dom.Attr ; 4 import org.w3c.dom.Element ; 5 6 import org.jbpm.bpel.def.Activity; 7 import org.jbpm.bpel.def.Scope; 8 9 13 public class ScopeReader extends ActivityReader { 14 15 protected Activity createActivity() { 16 return new Scope(); 17 } 18 19 protected void readActivity(Activity activity, Element scopeElement) { 20 Scope localScope = (Scope) activity; 21 localScope.setId(localScope.hashCode()); 23 24 Attr isolatedAttr = scopeElement.getAttributeNode(BpelConstants.ATTR_ISOLATED); 25 boolean isolated = bpelReader.readTBoolean(isolatedAttr, Boolean.FALSE).booleanValue(); 26 localScope.setIsolated(isolated); 27 bpelReader.readScope(scopeElement, localScope); 28 } 29 } 30 | Popular Tags |