public Object getOriginal(Object replacement) throws IllegalArgumentException { if (!(replacement instanceof OBaseReplacementImpl)) throw new IllegalArgumentException("Not OBaseReplacementObject!"); return _oprocess.getChild(((OBaseReplacementImpl)replacement)._id); }
private OScope.CorrelationSet findCorrelationById(int ckeyInt, Set<BpelProcess> processes, QName processId) { for (BpelProcess process : processes) { if (process.getConf().getProcessId().equals(processId)) { OBase ocset = process.getOProcess().getChild(ckeyInt); if (ocset instanceof OScope.CorrelationSet) return (OScope.CorrelationSet)ocset; } } return null; }
public ActivityExtInfoListDocument getExtensibilityElements(QName pid, Integer[] aids) { ActivityExtInfoListDocument aeild = ActivityExtInfoListDocument.Factory.newInstance(); TActivitytExtInfoList taeil = aeild.addNewActivityExtInfoList(); OProcess oprocess = _server._engine.getOProcess(pid); if (oprocess == null) throw new ProcessNotFoundException("The process \"" + pid + "\" does not exist."); for (int aid : aids) { OBase obase = oprocess.getChild(aid); if (obase != null && obase.debugInfo != null && obase.debugInfo.extensibilityElements != null) { for (Map.Entry<QName, Object> entry : obase.debugInfo.extensibilityElements.entrySet()) { TActivityExtInfo taei = taeil.addNewActivityExtInfo(); taei.setAiid("" + aid); Object extValue = entry.getValue(); if (extValue instanceof Element) taei.getDomNode().appendChild( taei.getDomNode().getOwnerDocument().importNode((Element) extValue, true)); else if (extValue instanceof String) { Element valueElmt = taei.getDomNode().getOwnerDocument().createElementNS( entry.getKey().getNamespaceURI(), entry.getKey().getLocalPart()); valueElmt.appendChild(taei.getDomNode().getOwnerDocument().createTextNode((String) extValue)); taei.getDomNode().appendChild(valueElmt); } } } } return aeild; }
OPartnerLink plink = (OPartnerLink) process.getOProcess().getChild(mexdao.getPartnerLinkModelId()); PortType ptype = plink.partnerRolePortType; Operation op = plink.getPartnerRoleOperation(mexdao.getOperation()); mex = new MyRoleMessageExchangeImpl(process, this, mexdao); if (process != null) { OPartnerLink plink = (OPartnerLink) process.getOProcess().getChild(mexdao.getPartnerLinkModelId());