From: <ro...@us...> - 2009-01-23 12:40:23
|
Revision: 4899 http://openuss.svn.sourceforge.net/openuss/?rev=4899&view=rev Author: roekens Date: 2009-01-23 11:52:03 +0000 (Fri, 23 Jan 2009) Log Message: ----------- Initial commit of CorrelationTest BPEL application Added Paths: ----------- trunk/sandbox/CorrelationTest/build.xml trunk/sandbox/CorrelationTest/catalog.xml trunk/sandbox/CorrelationTest/nbproject/ trunk/sandbox/CorrelationTest/nbproject/build-impl.xml trunk/sandbox/CorrelationTest/nbproject/genfiles.properties trunk/sandbox/CorrelationTest/nbproject/project.properties trunk/sandbox/CorrelationTest/nbproject/project.xml trunk/sandbox/CorrelationTest/src/ trunk/sandbox/CorrelationTest/src/CorrelationClient.bpel trunk/sandbox/CorrelationTest/src/CorrelationClient.wsdl trunk/sandbox/CorrelationTest/src/CorrelationProcess.bpel trunk/sandbox/CorrelationTest/src/CorrelationProcess.wsdl trunk/sandbox/CorrelationTest/src/CorrelationTest.xsd Property Changed: ---------------- trunk/sandbox/CorrelationTest/ Property changes on: trunk/sandbox/CorrelationTest ___________________________________________________________________ Added: svn:ignore + build Added: trunk/sandbox/CorrelationTest/build.xml =================================================================== --- trunk/sandbox/CorrelationTest/build.xml (rev 0) +++ trunk/sandbox/CorrelationTest/build.xml 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- You may freely edit this file. See commented blocks below for --> +<!-- some examples of how to customize the build. --> +<!-- (If you delete it and reopen the project it will be recreated.) --> +<project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> + <description>Builds, tests, and runs the project .</description> + <import file="nbproject/build-impl.xml"/> + <!-- + + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: + + pre-init: called before initialization of project properties + post-init: called after initialization of project properties + pre-compile: called before javac compilation + post-compile: called after javac compilation + pre-compile-single: called before javac compilation of single file + post-compile-single: called after javac compilation of single file + pre-dist: called before jar building + post-dist: called after jar building + post-clean: called after cleaning build products + + Example of pluging an obfuscator after the compilation could look like + + <target name="post-compile"> + <obfuscate> + <fileset dir="${build.classes.dir}"/> + </obfuscate> + </target> + + For list of available properties check the imported + nbproject/build-impl.xml file. + + + Other way how to customize the build is by overriding existing main targets. + The target of interest are: + + init-macrodef-javac: defines macro for javac compilation + init-macrodef-debug: defines macro for class debugging + do-dist: jar archive building + run: execution of project + javadoc-build: javadoc generation + + Example of overriding the target for project execution could look like + + <target name="run" depends="<PROJNAME>-impl.jar"> + <exec dir="bin" executable="launcher.exe"> + <arg file="${dist.jar}"/> + </exec> + </target> + + Notice that overridden target depends on jar target and not only on + compile target as regular run target does. Again, for list of available + properties which you can use check the target you are overriding in + nbproject/build-impl.xml file. + + --> + <target name="-check-netbeans-home"> + <condition property="no.netbeans.home"> + <not> + <isset property="netbeans.home"/> + </not> + </condition> + </target> + <target name="-init-caps" if="no.netbeans.home"> + <property file="${basedir}/nbproject/private/private.properties"/> + <property name="netbeans.home" value="${caps.netbeans.home}/platform9"/> + <property name="netbeans.user" value="${caps.netbeans.user}"/> + <property name="from.commandline" value="true"/> + </target> + <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/> +</project> Added: trunk/sandbox/CorrelationTest/catalog.xml =================================================================== --- trunk/sandbox/CorrelationTest/catalog.xml (rev 0) +++ trunk/sandbox/CorrelationTest/catalog.xml 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"/> Property changes on: trunk/sandbox/CorrelationTest/nbproject ___________________________________________________________________ Added: svn:ignore + private Added: trunk/sandbox/CorrelationTest/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/CorrelationTest/nbproject/build-impl.xml (rev 0) +++ trunk/sandbox/CorrelationTest/nbproject/build-impl.xml 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,142 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** + + For the purpose of easier reading the script + is divided into following sections: + + - initialization + - dist + - cleanup +--> +<project name="CorrelationTest-impl" default="default" basedir=".."> + <target name="default" depends="dist_se" description="Build whole project."/> + <!-- + ====================== + INITIALIZATION SECTION + ====================== + --> + <target name="-pre-init"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-init-private" depends="-pre-init"> + <property file="nbproject/private/private.properties"/> + </target> + <target name="-init-userdir" depends="-pre-init,-init-private"> + <property name="user.properties.file" location="${netbeans.user}/build.properties"/> + </target> + <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> + <property file="${user.properties.file}"/> + </target> + <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> + <property file="nbproject/project.properties"/> + </target> + <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> + <available file="${src.dir}/../retrieved" property="retrieved.exists"/> + </target> + <target name="-post-init"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> + <fail unless="src.dir">Must set src.dir</fail> + <fail unless="build.dir">Must set build.dir</fail> + <fail unless="dist.dir">Must set dist.dir</fail> + <fail unless="dist.jar">Must set dist.jar</fail> + </target> + <target name="-init-taskdefs" if="from.commandline"> + <path id="ant.task.classpath"> + <pathelement location="${netbeans.home}/../ide10/modules/ext/resolver-1.2.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-apache-xml-resolver.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${netbeans.home}/../platform9/core/org-openide-filesystems.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/org-openide-util.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-dialogs.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-loaders.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-nodes.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-text.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-queries.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> + <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> + </path> + <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + <taskdef name="generate-catalog-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateCatalogTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + <taskdef name="generate-jbi-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateJbiDescriptorTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + </target> + <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> + <!-- + ===================== + DIST BUILDING SECTION + ===================== + --> + <target name="-pre-dist"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"/> + <target name="-do-dist" depends="init,-pre-dist"> + <mkdir dir="${build.dir}"/> + <!--validation--> + <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}"/> + <!-- copy all files from project source directory to build directory. --> + <copy todir="${build.dir}" preservelastmodified="true"> + <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt" dir="${src.dir}"/> + </copy> + <generate-catalog-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/> + <generate-jbi-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/> + <jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar"> + <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt" dir="${basedir}/${build.dir}"/> + <fileset dir="${basedir}/${build.dir}"> + <include name="**/jbi.xml"/> + <include name="**/catalog.xml"/> + </fileset> + </jar> + </target> + <target name="-post-dist"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> + <!-- + =============== + CLEANUP SECTION + =============== + --> + <target name="-pre-clean"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-deps-clean" depends="init" unless="${no.dependencies}"/> + <target name="-do-clean" depends="init,-pre-clean"> + <delete dir="${build.dir}"/> + <delete dir="${dist.dir}"/> + </target> + <target name="-post-clean"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> +</project> Added: trunk/sandbox/CorrelationTest/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/CorrelationTest/nbproject/genfiles.properties (rev 0) +++ trunk/sandbox/CorrelationTest/nbproject/genfiles.properties 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,8 @@ +build.xml.data.CRC32=841380d9 +build.xml.script.CRC32=1578cd50 +build.xml.stylesheet.CRC32=6afb700a +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=841380d9 +nbproject/build-impl.xml.script.CRC32=aac59749 +nbproject/build-impl.xml.stylesheet.CRC32=e4fee816 Added: trunk/sandbox/CorrelationTest/nbproject/project.properties =================================================================== --- trunk/sandbox/CorrelationTest/nbproject/project.properties (rev 0) +++ trunk/sandbox/CorrelationTest/nbproject/project.properties 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,28 @@ +allow.build.with.error=false +bcdeployment.jar=${build.dir}/BCDeployment.jar +build.classes.dir=${build.dir}/jar +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.generated.dir=${build.dir}/generated +com.sun.jbi.ui.devtool.jbi.description.application-sub-assembly=Represents this Service Unit +com.sun.jbi.ui.devtool.jbi.setype.prefix=sun-bpel-engine +debug.classpath=${javac.classpath}:${build.classes.dir} +dist.dir=dist +dist.jar=${dist.dir}/CorrelationTest.zip +dist.javadoc.dir=${dist.dir}/javadoc +jar.compress=false +jar.name=CorrelationTest.jar +javac.debug=true +javac.deprecation=false +javac.source=1.4 +javac.target=1.4 +jbi.se.type=sun-bpel-engine +jbi.service-unit.description=Represents this Service Unit +meta.inf=${source.root}/conf +platform.active=default_platform +resource.dir=setup +sedeployment.jar=${build.dir}/SEDeployment.jar +source.encoding=UTF-8 +source.root=src +src.dir=${source.root} +wsdl.classpath= Added: trunk/sandbox/CorrelationTest/nbproject/project.xml =================================================================== --- trunk/sandbox/CorrelationTest/nbproject/project.xml (rev 0) +++ trunk/sandbox/CorrelationTest/nbproject/project.xml 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.bpel.project</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/j2ee-bpelpro/1"> + <name>CorrelationTest</name> + <minimum-ant-version>1.6</minimum-ant-version> + </data> + </configuration> +</project> Added: trunk/sandbox/CorrelationTest/src/CorrelationClient.bpel =================================================================== --- trunk/sandbox/CorrelationTest/src/CorrelationClient.bpel (rev 0) +++ trunk/sandbox/CorrelationTest/src/CorrelationClient.bpel 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,186 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="CorrelationClient" + targetNamespace="http://enterprise.netbeans.org/bpel/CorrelationTest/CorrelationClient" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace" + xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor" + xmlns:tns="http://enterprise.netbeans.org/bpel/CorrelationTest/CorrelationClient" + xmlns:ns0="http://xml.netbeans.org/schema/CorrelationTest" + xmlns:ns1="http://j2ee.netbeans.org/wsdl/CorrelationClient" + xmlns:ns2="http://j2ee.netbeans.org/wsdl/CorrelationProcess" + xmlns:ns3="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:sxtx="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension" + sxtx:waitingRequestLifeSpan="15"> + <import namespace="http://j2ee.netbeans.org/wsdl/CorrelationClient" location="CorrelationClient.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/CorrelationProcess" location="CorrelationProcess.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="PartnerLink2" partnerLinkType="ns2:CorrelationProcess" partnerRole="CorrelationProcessPortTypeRole"/> + <partnerLink name="PartnerLink1" partnerLinkType="ns1:CorrelationClient" myRole="CorrelationClientPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="CorrelationClientOperationOut" messageType="ns1:CorrelationClientOperationResponse"/> + <variable name="CorrelationReceiveOutcomeOperationIn1" messageType="ns1:CorrelationReceiveOutcomeRequest"/> + <variable name="CorrelationReceiveOutcomeOperationIn" messageType="ns1:CorrelationReceiveOutcomeRequest"/> + <variable name="CorrelationProcessOperationIn" messageType="ns2:CorrelationProcessOperationRequest"/> + <variable name="CorrelationClientOperationIn" messageType="ns1:CorrelationClientOperationRequest"/> + </variables> + <correlationSets> + <correlationSet name="ClientCorrSet" properties="ns1:clientCorrId"/> + </correlationSets> + <sequence> + <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink1" operation="CorrelationClientOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/CorrelationClient" portType="tns:CorrelationClientPortType" variable="CorrelationClientOperationIn"> + <correlations> + <correlation set="ClientCorrSet" initiate="yes"/> + </correlations> + </receive> + <assign name="Assign1"> + <copy> + <from>$CorrelationClientOperationIn.request/ns0:id</from> + <to>$CorrelationProcessOperationIn.part1/ns0:id</to> + </copy> + <copy> + <from>$CorrelationClientOperationIn.request/ns0:param</from> + <to>$CorrelationProcessOperationIn.part1/ns0:param</to> + </copy> + </assign> + <flow name="Flow1"> + <sequence name="FlowSequence"> + <scope name="Scope2"> + <faultHandlers> + <catchAll> + <empty name="Empty2"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns3:from>'Catch All - Thread 1'</ns3:from> + </sxt:log> + </sxt:trace> + </empty> + </catchAll> + </faultHandlers> + <sequence name="Sequence2"> + <invoke name="Invoke1" partnerLink="PartnerLink2" operation="CorrelationProcessOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/CorrelationProcess" portType="tns:CorrelationProcessPortType" inputVariable="CorrelationProcessOperationIn"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'Starting Thread 1'</from> + </sxt:log> + <sxt:log level="info" location="onComplete"> + <from>'Thread 1 Started'</from> + </sxt:log> + </sxt:trace> + </invoke> + </sequence> + </scope> + <pick name="Pick2"> + <onMessage partnerLink="PartnerLink1" operation="CorrelationReceiveOutcomeOperation" portType="ns1:CorrelationClientPortType" variable="CorrelationReceiveOutcomeOperationIn"> + <correlations> + <correlation set="ClientCorrSet" initiate="no"/> + </correlations> + <empty name="Empty4"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns3:from>'Everything OK - Outcome Received - Thread 1'</ns3:from> + </sxt:log> + </sxt:trace> + </empty> + </onMessage> + <onAlarm> + <for>'P0Y0M0DT0H0M5.0S'</for> + <assign name="Assign8"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns3:from>'Nothing Received - Thread 1'</ns3:from> + </sxt:log> + </sxt:trace> + <copy> + <from>'Nothing Received'</from> + <to>$CorrelationReceiveOutcomeOperationIn.request/ns0:id</to> + </copy> + <copy> + <from>'Nothing Received'</from> + <to>$CorrelationReceiveOutcomeOperationIn.request/ns0:param</to> + </copy> + </assign> + </onAlarm> + </pick> + </sequence> + <sequence name="FlowSequence1"> + <scope name="Scope1"> + <faultHandlers> + <catchAll> + <empty name="Empty1"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns3:from>'Catch All - Thread 2'</ns3:from> + </sxt:log> + </sxt:trace> + </empty> + </catchAll> + </faultHandlers> + <sequence name="Sequence1"> + <invoke name="Invoke2" partnerLink="PartnerLink2" operation="CorrelationProcessOperation" portType="ns2:CorrelationProcessPortType" inputVariable="CorrelationProcessOperationIn"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'Starting Thread 2'</from> + </sxt:log> + <sxt:log level="info" location="onComplete"> + <from>'Thread 2 Started'</from> + </sxt:log> + </sxt:trace> + </invoke> + </sequence> + </scope> + <pick name="Pick1"> + <onMessage partnerLink="PartnerLink1" operation="CorrelationReceiveOutcomeOperation" portType="ns1:CorrelationClientPortType" variable="CorrelationReceiveOutcomeOperationIn1"> + <correlations> + <correlation set="ClientCorrSet" initiate="no"/> + </correlations> + <empty name="Empty3"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns3:from>'Everything OK - Outcome Received - Thread 2'</ns3:from> + </sxt:log> + </sxt:trace> + </empty> + </onMessage> + <onAlarm> + <for>'P0Y0M0DT0H0M5.0S'</for> + <assign name="Assign7"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns3:from>'Nothing Received - Thread 2'</ns3:from> + </sxt:log> + </sxt:trace> + <copy> + <from>'Nothing Received'</from> + <to>$CorrelationReceiveOutcomeOperationIn1.request/ns0:id</to> + </copy> + <copy> + <from>'Nothing Received'</from> + <to>$CorrelationReceiveOutcomeOperationIn1.request/ns0:param</to> + </copy> + </assign> + </onAlarm> + </pick> + </sequence> + </flow> + <assign name="Assign2"> + <copy> + <from>concat($CorrelationReceiveOutcomeOperationIn.request/ns0:id, $CorrelationReceiveOutcomeOperationIn1.request/ns0:id)</from> + <to>$CorrelationClientOperationOut.response/ns0:id</to> + </copy> + <copy> + <from>concat($CorrelationReceiveOutcomeOperationIn.request/ns0:param, $CorrelationReceiveOutcomeOperationIn1.request/ns0:param)</from> + <to>$CorrelationClientOperationOut.response/ns0:param</to> + </copy> + </assign> + <reply name="Reply1" partnerLink="PartnerLink1" operation="CorrelationClientOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/CorrelationClient" portType="tns:CorrelationClientPortType" variable="CorrelationClientOperationOut"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'Test successfull'</from> + </sxt:log> + </sxt:trace> + </reply> + </sequence> +</process> Added: trunk/sandbox/CorrelationTest/src/CorrelationClient.wsdl =================================================================== --- trunk/sandbox/CorrelationTest/src/CorrelationClient.wsdl (rev 0) +++ trunk/sandbox/CorrelationTest/src/CorrelationClient.wsdl 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="CorrelationClient" targetNamespace="http://j2ee.netbeans.org/wsdl/CorrelationClient" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/CorrelationClient" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns0="http://xml.netbeans.org/schema/CorrelationTest" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/CorrelationClient"> + <xsd:import namespace="http://xml.netbeans.org/schema/CorrelationTest" schemaLocation="CorrelationTest.xsd"/> + </xsd:schema> + </types> +<!-- document style + <message name="CorrelationClientOperationRequest"> + <part name="part1" element="ns0:request"/> + </message> + <message name="CorrelationClientOperationResponse"> + <part name="part1" element="ns0:response"/> + </message> + <message name="CorrelationReceiveOutcomeRequest"> + <part name="part1" element="ns0:request"/> + </message> +--> +<!-- rpc style --> + <message name="CorrelationClientOperationRequest"> + <part name="request" type="ns0:request"/> + </message> + <message name="CorrelationClientOperationResponse"> + <part name="response" type="ns0:response"/> + </message> + <message name="CorrelationReceiveOutcomeRequest"> + <part name="request" type="ns0:request"/> + </message> + + <portType name="CorrelationClientPortType"> + <operation name="CorrelationClientOperation"> + <input name="input1" message="tns:CorrelationClientOperationRequest"/> + <output name="output1" message="tns:CorrelationClientOperationResponse"/> + </operation> + <operation name="CorrelationReceiveOutcomeOperation"> + <input name="input2" message="tns:CorrelationReceiveOutcomeRequest"/> + </operation> + </portType> + <binding name="CorrelationClientPortTypeBinding" type="tns:CorrelationClientPortType"> + <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> + <operation name="CorrelationClientOperation"> + <soap:operation/> + <input name="input1"> + <soap:body use="literal"/> + </input> + <output name="output1"> + <soap:body use="literal"/> + </output> + </operation> + <operation name="CorrelationReceiveOutcomeOperation"> + <soap:operation/> + <input name="input2"> + <soap:body use="literal"/> + </input> + </operation> + </binding> + <service name="CorrelationClientService"> + <port name="CorrelationClientPortTypeBindingPort" binding="tns:CorrelationClientPortTypeBinding"> + <soap:address location="http://localhost:${HttpDefaultPort}/CorrelationClientService/CorrelationClientPortTypeBindingPort"/> + </port> + </service> + <plnk:partnerLinkType name="CorrelationClient"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="CorrelationClientPortTypeRole" portType="tns:CorrelationClientPortType"/> + </plnk:partnerLinkType> + <vprop:property name="clientCorrId" type="xsd:string"/> + <vprop:propertyAlias propertyName="tns:clientCorrId" messageType="tns:CorrelationClientOperationRequest" part="request"> + <vprop:query>ns0:id</vprop:query> + </vprop:propertyAlias> + <vprop:propertyAlias propertyName="tns:clientCorrId" messageType="tns:CorrelationReceiveOutcomeRequest" part="request"> + <vprop:query>ns0:id</vprop:query> + </vprop:propertyAlias> +</definitions> Added: trunk/sandbox/CorrelationTest/src/CorrelationProcess.bpel =================================================================== --- trunk/sandbox/CorrelationTest/src/CorrelationProcess.bpel (rev 0) +++ trunk/sandbox/CorrelationTest/src/CorrelationProcess.bpel 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="CorrelationProcess" + targetNamespace="http://enterprise.netbeans.org/bpel/CorrelationTest/CorrelationProcess" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace" + xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor" + xmlns:tns="http://enterprise.netbeans.org/bpel/CorrelationTest/CorrelationProcess" + xmlns:ns0="http://xml.netbeans.org/schema/CorrelationTest" + xmlns:ns1="http://j2ee.netbeans.org/wsdl/CorrelationProcess" + xmlns:ns2="http://j2ee.netbeans.org/wsdl/CorrelationClient"> + <import namespace="http://j2ee.netbeans.org/wsdl/CorrelationProcess" location="CorrelationProcess.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/CorrelationClient" location="CorrelationClient.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="PartnerLink3" partnerLinkType="ns1:CorrelationProcess" myRole="CorrelationProcessPortTypeRole"/> + <partnerLink name="PartnerLink2" partnerLinkType="ns2:CorrelationClient" partnerRole="CorrelationClientPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="CorrelationProcessOperationIn" messageType="ns1:CorrelationProcessOperationRequest"/> + <variable name="CorrelationReceiveOutcomeOperationIn" messageType="ns2:CorrelationReceiveOutcomeRequest"/> + </variables> + <correlationSets> + <correlationSet name="ProcessCorrSet" properties="ns1:processCorrId"/> + </correlationSets> + <sequence> + <scope name="Scope1"> + <faultHandlers> + <catchAll> + <sequence name="FaultSequence"> + <empty name="Empty1"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'Catch All - Inner Thread'</from> + </sxt:log> + </sxt:trace> + </empty> + <assign name="Assign2"> + <copy> + <from>'FAULT'</from> + <to>$CorrelationReceiveOutcomeOperationIn.request/ns0:id</to> + </copy> + <copy> + <from>'FAULT'</from> + <to>$CorrelationReceiveOutcomeOperationIn.request/ns0:param</to> + </copy> + </assign> + </sequence> + </catchAll> + </faultHandlers> + <sequence name="Sequence1"> + <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink3" operation="CorrelationProcessOperation" portType="ns1:CorrelationProcessPortType" variable="CorrelationProcessOperationIn"> + <correlations> + <correlation set="ProcessCorrSet" initiate="yes"/> + </correlations> + </receive> + <assign name="Assign1"> + <copy> + <from>$CorrelationProcessOperationIn.part1/ns0:id</from> + <to>$CorrelationReceiveOutcomeOperationIn.request/ns0:id</to> + </copy> + <copy> + <from>$CorrelationProcessOperationIn.part1/ns0:param</from> + <to>$CorrelationReceiveOutcomeOperationIn.request/ns0:param</to> + </copy> + </assign> + <invoke name="Invoke1" partnerLink="PartnerLink2" operation="CorrelationReceiveOutcomeOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/CorrelationClient" portType="tns:CorrelationClientPortType" inputVariable="CorrelationReceiveOutcomeOperationIn"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'Thread started'</from> + </sxt:log> + <sxt:log level="info" location="onComplete"> + <from>'Thread outcome successfully send'</from> + </sxt:log> + </sxt:trace> + </invoke> + </sequence> + </scope> + + </sequence> +</process> Added: trunk/sandbox/CorrelationTest/src/CorrelationProcess.wsdl =================================================================== --- trunk/sandbox/CorrelationTest/src/CorrelationProcess.wsdl (rev 0) +++ trunk/sandbox/CorrelationTest/src/CorrelationProcess.wsdl 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="CorrelationProcess" targetNamespace="http://j2ee.netbeans.org/wsdl/CorrelationProcess" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://j2ee.netbeans.org/wsdl/CorrelationProcess" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://xml.netbeans.org/schema/CorrelationTest" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" xmlns:ns1="http://j2ee.netbeans.org/wsdl/CorrelationClient"> + <import namespace="http://j2ee.netbeans.org/wsdl/CorrelationClient" location="CorrelationClient.wsdl"/> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/CorrelationProcess"> + <xsd:import namespace="http://xml.netbeans.org/schema/CorrelationTest" schemaLocation="CorrelationTest.xsd"/> + </xsd:schema> + </types> + <message name="CorrelationProcessOperationRequest"> + <part name="part1" element="ns0:processRequest"/> + </message> + <portType name="CorrelationProcessPortType"> + <operation name="CorrelationProcessOperation"> + <input name="input1" message="tns:CorrelationProcessOperationRequest"/> + </operation> + </portType> + <binding name="CorrelationProcessPortTypeBinding" type="tns:CorrelationProcessPortType"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <operation name="CorrelationProcessOperation"> + <soap:operation/> + <input name="input1"> + <soap:body use="literal"/> + </input> + </operation> + </binding> + <service name="CorrelationProcessService"> + <port name="CorrelationProcessPortTypeBindingPort" binding="tns:CorrelationProcessPortTypeBinding"> + <soap:address location="http://localhost:${HttpDefaultPort}/CorrelationProcessService/CorrelationProcessPortTypeBindingPort"/> + </port> + </service> + <plnk:partnerLinkType name="CorrelationProcess"> + <plnk:role name="CorrelationProcessPortTypeRole" portType="tns:CorrelationProcessPortType"/> + </plnk:partnerLinkType> + <vprop:property name="processCorrId" type="xsd:string"/> + <vprop:propertyAlias propertyName="tns:processCorrId" messageType="tns:CorrelationProcessOperationRequest" part="part1"> + <vprop:query>/ns0:processRequest/ns0:id</vprop:query> + </vprop:propertyAlias> +</definitions> Added: trunk/sandbox/CorrelationTest/src/CorrelationTest.xsd =================================================================== --- trunk/sandbox/CorrelationTest/src/CorrelationTest.xsd (rev 0) +++ trunk/sandbox/CorrelationTest/src/CorrelationTest.xsd 2009-01-23 11:52:03 UTC (rev 4899) @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://xml.netbeans.org/schema/CorrelationTest" + xmlns:tns="http://xml.netbeans.org/schema/CorrelationTest" + elementFormDefault="qualified"> + <xsd:element name="request" type="tns:request"/> + <xsd:element name="processRequest" type="tns:request" /> + <xsd:element name="response" type="tns:response"/> + <xsd:complexType name="request"> + <xsd:sequence> + <xsd:element name="id" type="xsd:string"/> + <xsd:element name="param" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + <xsd:complexType name="response"> + <xsd:sequence> + <xsd:element name="id" type="xsd:string"/> + <xsd:element name="param" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> +</xsd:schema> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |