send.setKind(SenderBehaviour.Kind.ASYNCHRONOUS); send.setInputVariableName(new QName(reply.getOutputVariable())); if (reply.getInterface() != null) { itf = bpelprocess.getImports().getInterface( reply.getInterface()); if (itf == null) { throw new CoreException( "Impossible to find interface corresponding to " + reply.getInterface()); client.setInterfaceName(reply.getInterface()); client.setInvokedOperation(reply.getOperation()); client.setServiceName(new QName("client")); if (itf != null) { replyNode = scope.createNode(reply.getName(), send); this.initiateCorrelations(scope, reply.getCorrelations(), reply .getOutputVariable(), bpelprocess);
reply.setInterface(currentInterface.getQName()); reply.setName("ReplyFor"+om.getOperation()); reply.setOperation(om.getOperation()); reply.setOutputVariable(this.varInOut.get(var)); reply.setPartnerLink(currentPl.getName());
log.finest("validate reply: " + this.getActivity().getName()); try { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.getActivity(), "In reply " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the activity topart is not supported by BPEL engine for the moment. Use assign element before this reply instead")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In reply " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the activity topart is not supported by BPEL engine for the moment. Use assign element before this reply instead"))); BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.getActivity(), "In receive " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the messageExchange attribute is not supported by BPEL engine for the moment.")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In reply " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the activity topart is not supported by BPEL engine for the moment. Use assign element before this reply instead"))); if((this.getActivity().getPartnerLink() == null) || (this.getActivity().getPartnerLink().trim().length() == 0)) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In reply " + this.getActivity().getName() + " => the partnerLink cannot be null or empty"))); if((this.getActivity().getOperation() == null) || (this.getActivity().getOperation().trim().length() == 0)) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In reply " + this.getActivity().getName() + " => the operation cannot be null or empty"))); if((this.getActivity().getOutputVariable() == null) || (this.getActivity().getOutputVariable().trim().length() == 0)) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In reply " + this.getActivity().getName() + " => the output variable cannot be null or empty"))); if((this.getActivity().getPartnerLink() != null) && (this.getActivity().getPartnerLink().trim().length() > 0)) { final PartnerLink partnerLink = ScopeUtil.findPartnerLinkRecursively(this.getActivity().getPartnerLink(), (BPELElement) ((BPELElementImpl)this.getActivity()).getParent()); if(partnerLink == null) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In reply " + this.getActivity().getName() + " => Impossible to find partnerLink corresponding to the name: " + this.getActivity().getPartnerLink()))); if((this.getActivity().getOperation() != null) && (this.getActivity().getOperation().trim().length() > 0)) { if(partnerLink != null) { final BPELProcess process = ScopeUtil.getProcess((this.getActivity())); if(this.getActivity().getInterface() != null) { final InterfaceType itf = process.getImports().getInterface(this.getActivity().getInterface());
reply.setInterface(currentInterface.getQName()); reply.setName("ReplyFor"+om.getOperation()); reply.setOperation(om.getOperation()); reply.setOutputVariable(this.varInOut.get(var)); reply.setPartnerLink(pl.getName());