public Object createCopy() { return new TProcess(); }
equalsBuilder.append(this.getExtensions(), that.getExtensions()); equalsBuilder.append(this.getImport(), that.getImport()); equalsBuilder.append(this.getPartnerLinks(), that.getPartnerLinks()); equalsBuilder.append(this.getMessageExchanges(), that.getMessageExchanges()); equalsBuilder.append(this.getVariables(), that.getVariables()); equalsBuilder.append(this.getCorrelationSets(), that.getCorrelationSets()); equalsBuilder.append(this.getFaultHandlers(), that.getFaultHandlers()); equalsBuilder.append(this.getEventHandlers(), that.getEventHandlers()); equalsBuilder.append(this.getAssign(), that.getAssign()); equalsBuilder.append(this.getCompensate(), that.getCompensate()); equalsBuilder.append(this.getCompensateScope(), that.getCompensateScope()); equalsBuilder.append(this.getEmpty(), that.getEmpty()); equalsBuilder.append(this.getExit(), that.getExit()); equalsBuilder.append(this.getExtensionActivity(), that.getExtensionActivity()); equalsBuilder.append(this.getFlow(), that.getFlow()); equalsBuilder.append(this.getForEach(), that.getForEach()); equalsBuilder.append(this.getIf(), that.getIf()); equalsBuilder.append(this.getInvoke(), that.getInvoke()); equalsBuilder.append(this.getPick(), that.getPick()); equalsBuilder.append(this.getReceive(), that.getReceive()); equalsBuilder.append(this.getRepeatUntil(), that.getRepeatUntil()); equalsBuilder.append(this.getReply(), that.getReply()); equalsBuilder.append(this.getRethrow(), that.getRethrow()); equalsBuilder.append(this.getScope(), that.getScope()); equalsBuilder.append(this.getSequence(), that.getSequence()); equalsBuilder.append(this.getThrow(), that.getThrow()); equalsBuilder.append(this.getValidate(), that.getValidate()); equalsBuilder.append(this.getWait(), that.getWait()); equalsBuilder.append(this.getWhile(), that.getWhile());
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TProcess copy = ((target == null)?((TProcess) createCopy()):((TProcess) target)); super.copyTo(copy, copyBuilder); sourceExtensions = this.getExtensions(); TExtensions copyExtensions = ((TExtensions) copyBuilder.copy(sourceExtensions)); copy.setExtensions(copyExtensions); sourceImport = this.getImport(); List<TImport> copyImport = ((List<TImport> ) copyBuilder.copy(sourceImport)); copy._import = null; List<TImport> uniqueImportl = copy.getImport(); uniqueImportl.addAll(copyImport); sourcePartnerLinks = this.getPartnerLinks(); TPartnerLinks copyPartnerLinks = ((TPartnerLinks) copyBuilder.copy(sourcePartnerLinks)); copy.setPartnerLinks(copyPartnerLinks); sourceMessageExchanges = this.getMessageExchanges(); TMessageExchanges copyMessageExchanges = ((TMessageExchanges) copyBuilder.copy(sourceMessageExchanges)); copy.setMessageExchanges(copyMessageExchanges); sourceVariables = this.getVariables(); TVariables copyVariables = ((TVariables) copyBuilder.copy(sourceVariables)); copy.setVariables(copyVariables); sourceCorrelationSets = this.getCorrelationSets(); TCorrelationSets copyCorrelationSets = ((TCorrelationSets) copyBuilder.copy(sourceCorrelationSets)); copy.setCorrelationSets(copyCorrelationSets);
public static Activity analyzeProcess(final TProcess temp, final BPELElementImpl parent) throws BPELException { Activity res = null; if(temp.getAssign() != null) { res = ActivityImpl.getActivity(temp.getAssign(), parent); } else if(temp.getEmpty() != null) { res = ActivityImpl.getActivity(temp.getEmpty(), parent); } else if(temp.getFlow() != null) { res = ActivityImpl.getActivity(temp.getFlow(), parent); } else if(temp.getForEach() != null) { res = ActivityImpl.getActivity(temp.getForEach(), parent); } else if(temp.getRepeatUntil() != null) { res = ActivityImpl.getActivity(temp.getRepeatUntil(), parent); } else if(temp.getIf() != null) { res = ActivityImpl.getActivity(temp.getIf(), parent); } else if(temp.getInvoke() != null) { res = ActivityImpl.getActivity(temp.getInvoke(), parent); } else if(temp.getReceive() != null) { res = ActivityImpl.getActivity(temp.getReceive(), parent); } else if(temp.getRepeatUntil() != null) { res = ActivityImpl.getActivity(temp.getRepeatUntil(), parent); } else if(temp.getReply() != null) { res = ActivityImpl.getActivity(temp.getReply(), parent); } else if(temp.getScope() != null) { res = ActivityImpl.getActivity(temp.getScope(), parent); } else if(temp.getScope() != null) { res = ActivityImpl.getActivity(temp.getScope(), parent); } else if(temp.getSequence() != null) { res = ActivityImpl.getActivity(temp.getSequence(), parent); } else if(temp.getWait() != null) { res = ActivityImpl.getActivity(temp.getWait(), parent);
if((this.model.getImport() != null)&&(this.model.getImport().size() > 0)) { for(final TImport impt: this.model.getImport()) { imports.add(new ImportImpl(impt, this)); this.descriptions = new DescriptionsImpl(this.model.getTargetNamespace(), this.model.getName(), imports); if(this.model.getExtensions() != null && this.model.getExtensions().getExtension().size() > 0) { this.extensions = new ExtensionsImpl(this.model.getExtensions(), this); if(this.model.getPartnerLinks() != null) { if((this.model.getPartnerLinks().getPartnerLink() != null)&& (this.model.getPartnerLinks().getPartnerLink().size() > 0)) { for(final TPartnerLink partner: this.model.getPartnerLinks().getPartnerLink()) { this.partnerLinks.add(new PartnerLinkImpl(partner, this.model.getPartnerLinks(), this)); this.variables.addAll(ScopeImpl.extractVariablesInModel(this.model.getVariables(), this)); } catch (final BPELException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In process " + this.getName() + " => " + e.getMessage(),e))); if(this.model.getFaultHandlers() != null) { this.faultHandlers = new FaultHandlersImpl(this.model.getFaultHandlers(), this); this.correlationsets.addAll(CorrelationSetImpl.extractCorrelationSetsInModel(this.model.getCorrelationSets(), this)); } catch (final BPELException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In process " + this.getName() + " => " + e.getMessage(),e))); if(this.activity == null && this.model.getExtensionActivity() != null) { this.activity = new ExtensionActivityImpl(this.model.getExtensionActivity(), this);
if(tprocess.getSuppressJoinFailure() != null) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.process, "In process => [BPEL engine restriction] Sorry, but the suppressJoinFailure attribute is ignored for the moment")); if(tprocess.getExitOnStandardFault() != null) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.process, "In process => [BPEL engine restriction] Sorry, but the exitOnStandardFault attribute is ignored for the moment")); if((tprocess.getPartnerLinks() == null) || (tprocess.getPartnerLinks().getPartnerLink() == null) || (tprocess.getPartnerLinks().getPartnerLink().size() == 0)) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.process, new BPELException("In process => A process MUST have at less one partnerLink"))); if((tprocess.getVariables() == null) || (tprocess.getVariables().getVariable() == null) || (tprocess.getVariables().getVariable().size() == 0)) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.process, new BPELException("In process => A process MUST have at less one variable"))); if((tprocess.getPartnerLinks() != null) && (tprocess.getPartnerLinks().getPartnerLink() != null) && (tprocess.getPartnerLinks().getPartnerLink().size() > 0)) { boolean myRole = false; for(final TPartnerLink pl: tprocess.getPartnerLinks().getPartnerLink()) { if((pl.getMyRole() != null) && (pl.getMyRole().trim().length() > 0)) { myRole = true; if((tprocess.getMessageExchanges() != null) && (tprocess.getMessageExchanges().getMessageExchange().size() > 0)) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.process, "In process => [BPEL engine restriction] Sorry, but the messageExchanges are not supported for the moment")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.process, new BPELException("In process => [BPEL engine restriction] Sorry, but the extensions are not supported for the moment"))); if( (tprocess.getEventHandlers() != null) && ((tprocess.getEventHandlers().getOnEvent().size() > 0) || (tprocess.getEventHandlers().getOnAlarm().size() > 0))) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.process, "In process => [BPEL engine restriction] Sorry, but the eventHandler are not supported for the moment")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.process, new BPELException("In process => [BPEL engine restriction] Sorry, but the extensions are not supported for the moment")));
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TProcess copy = ((target == null)?((TProcess) createCopy()):((TProcess) target)); super.copyTo(copy, copyBuilder); sourceExtensions = this.getExtensions(); TExtensions copyExtensions = ((TExtensions) copyBuilder.copy(sourceExtensions)); copy.setExtensions(copyExtensions); sourceImport = this.getImport(); List<TImport> copyImport = ((List<TImport> ) copyBuilder.copy(sourceImport)); copy._import = null; List<TImport> uniqueImportl = copy.getImport(); uniqueImportl.addAll(copyImport); sourcePartnerLinks = this.getPartnerLinks(); TPartnerLinks copyPartnerLinks = ((TPartnerLinks) copyBuilder.copy(sourcePartnerLinks)); copy.setPartnerLinks(copyPartnerLinks); sourceMessageExchanges = this.getMessageExchanges(); TMessageExchanges copyMessageExchanges = ((TMessageExchanges) copyBuilder.copy(sourceMessageExchanges)); copy.setMessageExchanges(copyMessageExchanges); sourceVariables = this.getVariables(); TVariables copyVariables = ((TVariables) copyBuilder.copy(sourceVariables)); copy.setVariables(copyVariables); sourceCorrelationSets = this.getCorrelationSets(); TCorrelationSets copyCorrelationSets = ((TCorrelationSets) copyBuilder.copy(sourceCorrelationSets)); copy.setCorrelationSets(copyCorrelationSets);
equalsBuilder.append(this.getExtensions(), that.getExtensions()); equalsBuilder.append(this.getImport(), that.getImport()); equalsBuilder.append(this.getPartnerLinks(), that.getPartnerLinks()); equalsBuilder.append(this.getMessageExchanges(), that.getMessageExchanges()); equalsBuilder.append(this.getVariables(), that.getVariables()); equalsBuilder.append(this.getCorrelationSets(), that.getCorrelationSets()); equalsBuilder.append(this.getFaultHandlers(), that.getFaultHandlers()); equalsBuilder.append(this.getEventHandlers(), that.getEventHandlers()); equalsBuilder.append(this.getAssign(), that.getAssign()); equalsBuilder.append(this.getCompensate(), that.getCompensate()); equalsBuilder.append(this.getCompensateScope(), that.getCompensateScope()); equalsBuilder.append(this.getEmpty(), that.getEmpty()); equalsBuilder.append(this.getExit(), that.getExit()); equalsBuilder.append(this.getExtensionActivity(), that.getExtensionActivity()); equalsBuilder.append(this.getFlow(), that.getFlow()); equalsBuilder.append(this.getForEach(), that.getForEach()); equalsBuilder.append(this.getIf(), that.getIf()); equalsBuilder.append(this.getInvoke(), that.getInvoke()); equalsBuilder.append(this.getPick(), that.getPick()); equalsBuilder.append(this.getReceive(), that.getReceive()); equalsBuilder.append(this.getRepeatUntil(), that.getRepeatUntil()); equalsBuilder.append(this.getReply(), that.getReply()); equalsBuilder.append(this.getRethrow(), that.getRethrow()); equalsBuilder.append(this.getScope(), that.getScope()); equalsBuilder.append(this.getSequence(), that.getSequence()); equalsBuilder.append(this.getThrow(), that.getThrow()); equalsBuilder.append(this.getValidate(), that.getValidate()); equalsBuilder.append(this.getWait(), that.getWait()); equalsBuilder.append(this.getWhile(), that.getWhile());
/** * Create an instance of {@link TProcess } * */ public TProcess createTProcess() { return new TProcess(); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getExtensions()); hashCodeBuilder.append(this.getImport()); hashCodeBuilder.append(this.getPartnerLinks()); hashCodeBuilder.append(this.getMessageExchanges()); hashCodeBuilder.append(this.getVariables()); hashCodeBuilder.append(this.getCorrelationSets()); hashCodeBuilder.append(this.getFaultHandlers()); hashCodeBuilder.append(this.getEventHandlers()); hashCodeBuilder.append(this.getAssign()); hashCodeBuilder.append(this.getCompensate()); hashCodeBuilder.append(this.getCompensateScope()); hashCodeBuilder.append(this.getEmpty()); hashCodeBuilder.append(this.getExit()); hashCodeBuilder.append(this.getExtensionActivity()); hashCodeBuilder.append(this.getFlow()); hashCodeBuilder.append(this.getForEach()); hashCodeBuilder.append(this.getIf()); hashCodeBuilder.append(this.getInvoke()); hashCodeBuilder.append(this.getPick()); hashCodeBuilder.append(this.getReceive()); hashCodeBuilder.append(this.getRepeatUntil()); hashCodeBuilder.append(this.getReply()); hashCodeBuilder.append(this.getRethrow()); hashCodeBuilder.append(this.getScope()); hashCodeBuilder.append(this.getSequence()); hashCodeBuilder.append(this.getThrow()); hashCodeBuilder.append(this.getValidate()); hashCodeBuilder.append(this.getWait());
/** * Create an instance of {@link TProcess } * */ public TProcess createTProcess() { return new TProcess(); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getExtensions()); hashCodeBuilder.append(this.getImport()); hashCodeBuilder.append(this.getPartnerLinks()); hashCodeBuilder.append(this.getMessageExchanges()); hashCodeBuilder.append(this.getVariables()); hashCodeBuilder.append(this.getCorrelationSets()); hashCodeBuilder.append(this.getFaultHandlers()); hashCodeBuilder.append(this.getEventHandlers()); hashCodeBuilder.append(this.getAssign()); hashCodeBuilder.append(this.getCompensate()); hashCodeBuilder.append(this.getCompensateScope()); hashCodeBuilder.append(this.getEmpty()); hashCodeBuilder.append(this.getExit()); hashCodeBuilder.append(this.getExtensionActivity()); hashCodeBuilder.append(this.getFlow()); hashCodeBuilder.append(this.getForEach()); hashCodeBuilder.append(this.getIf()); hashCodeBuilder.append(this.getInvoke()); hashCodeBuilder.append(this.getPick()); hashCodeBuilder.append(this.getReceive()); hashCodeBuilder.append(this.getRepeatUntil()); hashCodeBuilder.append(this.getReply()); hashCodeBuilder.append(this.getRethrow()); hashCodeBuilder.append(this.getScope()); hashCodeBuilder.append(this.getSequence()); hashCodeBuilder.append(this.getThrow()); hashCodeBuilder.append(this.getValidate()); hashCodeBuilder.append(this.getWait());
public Object createCopy() { return new TProcess(); }
theExtensions = this.getExtensions(); toStringBuilder.append("extensions", theExtensions); theImport = this.getImport(); toStringBuilder.append("_import", theImport); thePartnerLinks = this.getPartnerLinks(); toStringBuilder.append("partnerLinks", thePartnerLinks); theMessageExchanges = this.getMessageExchanges(); toStringBuilder.append("messageExchanges", theMessageExchanges); theVariables = this.getVariables(); toStringBuilder.append("variables", theVariables); theCorrelationSets = this.getCorrelationSets(); toStringBuilder.append("correlationSets", theCorrelationSets); theFaultHandlers = this.getFaultHandlers(); toStringBuilder.append("faultHandlers", theFaultHandlers); theEventHandlers = this.getEventHandlers(); toStringBuilder.append("eventHandlers", theEventHandlers); theAssign = this.getAssign(); toStringBuilder.append("assign", theAssign); theCompensate = this.getCompensate(); toStringBuilder.append("compensate", theCompensate);
this.bpelDef = new BPELProcessImpl(new URI(bpelFileName), new TProcess(), filter.getNamespaceMapper(), features); this.bpelDef.setName(bpelFileName); this.bpelDef.setTargetNamespace(wsdlBpel.getTargetNamespace());
theExtensions = this.getExtensions(); toStringBuilder.append("extensions", theExtensions); theImport = this.getImport(); toStringBuilder.append("_import", theImport); thePartnerLinks = this.getPartnerLinks(); toStringBuilder.append("partnerLinks", thePartnerLinks); theMessageExchanges = this.getMessageExchanges(); toStringBuilder.append("messageExchanges", theMessageExchanges); theVariables = this.getVariables(); toStringBuilder.append("variables", theVariables); theCorrelationSets = this.getCorrelationSets(); toStringBuilder.append("correlationSets", theCorrelationSets); theFaultHandlers = this.getFaultHandlers(); toStringBuilder.append("faultHandlers", theFaultHandlers); theEventHandlers = this.getEventHandlers(); toStringBuilder.append("eventHandlers", theEventHandlers); theAssign = this.getAssign(); toStringBuilder.append("assign", theAssign); theCompensate = this.getCompensate(); toStringBuilder.append("compensate", theCompensate);
BPELProcess bpelProcess = new BPELProcessImpl(new URI(bpelFileName), new TProcess(), filter.getNamespaceMapper(), features);