Author: mriou
Date: Wed May 21 15:32:42 2008
New Revision: 658908

URL: http://svn.apache.org/viewvc?rev=658908&view=rev
Log:
ODE-234

Modified:
    
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java

Modified: 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
URL: 
http://svn.apache.org/viewvc/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java?rev=658908&r1=658907&r2=658908&view=diff
==============================================================================
--- 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
 (original)
+++ 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
 Wed May 21 15:32:42 2008
@@ -736,8 +736,8 @@
         else if (__log.isDebugEnabled())
             __log.debug("fillProcessInfo: No files for " + 
pconf.getProcessId());
 
+        TProcessProperties properties = info.addNewProperties();
         if (custom.includeProcessProperties()) {
-            TProcessProperties properties = info.addNewProperties();
             for (Map.Entry<QName, Node> propEntry : 
pconf.getProperties().entrySet()) {
                 TProcessProperties.Property tprocProp = 
properties.addNewProperty();
                 tprocProp.setName(new 
QName(propEntry.getKey().getNamespaceURI(), propEntry.getKey().getLocalPart()));
@@ -748,9 +748,9 @@
             }
         }
 
+        TEndpointReferences eprs = info.addNewEndpoints();
         OProcess oprocess = _server.getOProcess(pconf.getProcessId());
         if (custom.includeEndpoints() && oprocess != null) {
-            TEndpointReferences eprs = info.addNewEndpoints();
             for (OPartnerLink oplink : oprocess.getAllPartnerLinks()) {
                 if (oplink.hasPartnerRole() && oplink.initializePartnerRole) {
                     // TODO: this is very uncool.


Reply via email to