Author: mriou
Date: Thu Sep 28 16:31:47 2006
New Revision: 451058

URL: http://svn.apache.org/viewvc?view=rev&rev=451058
Log:
Making fillProcessInfo more resistent to bad activation. Could be just moving 
the problem to execution though.

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

Modified: 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java?view=diff&rev=451058&r1=451057&r2=451058
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
 Thu Sep 28 16:31:47 2006
@@ -664,9 +664,9 @@
             }
         }
 
-        if (custom.includeEndpoints() && proc.isActive()) {
+        OProcess oprocess = _engine.getOProcess(proc.getProcessId());
+        if (custom.includeEndpoints() && oprocess != null) {
             TEndpointReferences eprs = info.addNewEndpoints();
-            OProcess oprocess = _engine.getOProcess(proc.getProcessId());
             if (oprocess == null) throw new 
InvalidRequestException("ProcessNotActive: " + proc.getProcessId());
             for (OPartnerLink oplink : oprocess.getAllPartnerLinks()) {
                 if (oplink.hasPartnerRole() && oplink.initializePartnerRole) {


Reply via email to