ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mszef...@apache.org
Subject svn commit: r544952 - /incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/InvokeActivity.java
Date Wed, 06 Jun 2007 21:08:49 GMT
Author: mszefler
Date: Wed Jun  6 14:08:48 2007
New Revision: 544952

URL: http://svn.apache.org/viewvc?view=rev&rev=544952
Log:
BPEL2.0 conformance issue: <catch>es are found directly under 
<invoke>activity.

Modified:
    incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/InvokeActivity.java

Modified: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/InvokeActivity.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/InvokeActivity.java?view=diff&rev=544952&r1=544951&r2=544952
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/InvokeActivity.java
(original)
+++ incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/InvokeActivity.java
Wed Jun  6 14:08:48 2007
@@ -18,6 +18,7 @@
  */
 package org.apache.ode.bpel.compiler.bom;
 
+import java.util.Collections;
 import java.util.List;
 
 import javax.xml.namespace.QName;
@@ -74,4 +75,60 @@
         return _commHelper.getCorrelations();
     }
 
+    
+    /**
+     * Bastardized scope for invokes. Only supports catches/compensation handlers.
+     * @author mszefler
+     *
+     */
+    class BastardScope extends Scope {
+
+        public BastardScope(Element el) {
+            super(el);
+        }
+
+        @Override
+        public FaultHandler getFaultHandler() {
+            // Note, in <invoke> unlike <scope> the catches are NOT in an <faultHandler>
element. 
+            return new FaultHandler(getElement());
+        }
+
+        @Override
+        public CorrelationSet getCorrelationSetDecl(String setName) {
+            return null;
+        }
+
+        @Override
+        public List<CorrelationSet> getCorrelationSetDecls() {
+            return Collections.emptyList();
+        }
+
+        @Override
+        public List<OnEvent> getEvents() {
+            return Collections.emptyList();
+        }
+
+        @Override
+        public PartnerLink getPartnerLink(String partnerLinkName) {
+            return null;
+        }
+
+        @Override
+        public List<PartnerLink> getPartnerLinks() {
+            return Collections.emptyList();
+        }
+
+        @Override
+        public Variable getVariableDecl(String varName) {
+            return null; 
+        }
+
+        @Override
+        public List<Variable> getVariables() {
+            return Collections.emptyList();
+
+        }
+
+        
+    }
 }



Mime
View raw message