diff options
author | 2017-08-08 14:02:53 +0800 | |
---|---|---|
committer | 2017-08-08 14:02:53 +0800 | |
commit | c0604184b2aa8cff924ca783ec6b36f1f5988775 (patch) | |
tree | 1c70ffe1ad90c915b3382a37eb2fa80901519c7b /wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java | |
parent | 706fc9fed496972968fde136c3e4e10f9578a5b3 (diff) |
init code
Change-Id: Icd0948118397b256da70dfbcbbec5520dc5eafd4
Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
Diffstat (limited to 'wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java')
-rw-r--r-- | wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java b/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java deleted file mode 100644 index fd7b4b3..0000000 --- a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * - * Copyright 2011 IAAS University of Stuttgart <br> - * <br> - * - * THIS CLASS IS USED FOR TEST PURPOSES! - * - * @author uwe.breitenbuecher@iaas.uni-stuttgart.de - * - */ -package de.unistuttgart.iaas.bpel.extensions.bpel4restlight; - -import java.net.HttpURLConnection; -import java.net.URL; - -import org.apache.ode.bpel.common.FaultException; -import org.apache.ode.bpel.o.OPartnerLink; -import org.apache.ode.bpel.runtime.PartnerLinkInstance; -import org.apache.ode.bpel.runtime.extension.AbstractSyncExtensionOperation; -import org.apache.ode.bpel.runtime.extension.ExtensionContext; -import org.w3c.dom.Element; - -import de.unistuttgart.iaas.xml.DomXmlConverter; - - -public class EPRDemoOperation extends AbstractSyncExtensionOperation { - - /** {@inheritDoc} */ - @Override - protected void runSync(ExtensionContext context, Element element) throws FaultException { - System.out.println("bin hier"); - try { - for (OPartnerLink l : context.getInternalInstance().getProcessModel().allPartnerLinks) { - - PartnerLinkInstance pli = context.getPartnerLinkInstance(l); - - Element epr = context.getInternalInstance().fetchPartnerRoleEndpointReferenceData(pli); - System.out.println("EPR|||"); - System.out.println(DomXmlConverter.nodeToString(epr, null)); - - System.out.println(epr.getChildNodes().item(0).getChildNodes().item(1).getNodeName()); - System.out.println(epr.getChildNodes().item(0).getChildNodes().item(1).getTextContent()); - System.out.println(".."); - System.out.println(epr.getChildNodes().item(0).getChildNodes().item(1).getChildNodes().item(0).getTextContent()); - - epr.getChildNodes().item(0).getChildNodes().item(1).getChildNodes().item(0).setTextContent("http://localhost:8084/FRP/rrr"); - - System.out.println(epr.getChildNodes().item(0).getChildNodes().item(1).getChildNodes().item(0).getTextContent()); - - System.out.println(context.getDUDir().toString()); - - } - - } catch (Exception e) { - e.printStackTrace(); - } - - System.out.println("ich bin hiiiiiiiiiier!!"); - - try { - URL url = new URL("http://localhost:8084/FRP/rrr"); - - HttpURLConnection connection = (HttpURLConnection) url.openConnection(); - connection.setRequestMethod("PUT"); - - int responseCode = connection.getResponseCode(); - System.out.println(responseCode); - - } catch (Exception e) { - e.printStackTrace(); - } - } - -} |