You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ms...@apache.org on 2007/03/24 03:13:40 UTC
svn commit: r521961 - in
/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler:
RepeatUntilGenerator.java bom/RepeatUntilActivity.java
Author: mszefler
Date: Fri Mar 23 19:13:39 2007
New Revision: 521961
URL: http://svn.apache.org/viewvc?view=rev&rev=521961
Log:
checkin repeatuntil stragglers
Added:
incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/RepeatUntilGenerator.java (with props)
incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/RepeatUntilActivity.java (with props)
Added: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/RepeatUntilGenerator.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/RepeatUntilGenerator.java?view=auto&rev=521961
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/RepeatUntilGenerator.java (added)
+++ incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/RepeatUntilGenerator.java Fri Mar 23 19:13:39 2007
@@ -0,0 +1,23 @@
+package org.apache.ode.bpel.compiler;
+
+import org.apache.ode.bpel.compiler.bom.Activity;
+import org.apache.ode.bpel.compiler.bom.RepeatUntilActivity;
+import org.apache.ode.bpel.o.OActivity;
+import org.apache.ode.bpel.o.ORepeatUntil;
+
+/**
+ * Generates code for <code><while></code> activities.
+ */
+class RepeatUntilGenerator extends DefaultActivityGenerator {
+ public OActivity newInstance(Activity src) {
+ return new ORepeatUntil(_context.getOProcess(), _context.getCurrent());
+ }
+
+ public void compile(OActivity output, Activity srcx) {
+ ORepeatUntil oru = (ORepeatUntil) output;
+ RepeatUntilActivity src = (RepeatUntilActivity)srcx;
+ oru.untilCondition = _context.compileExpr(src.getCondition());
+ oru.activity = _context.compile(src.getActivity());
+ }
+}
+
Propchange: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/RepeatUntilGenerator.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/RepeatUntilActivity.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/RepeatUntilActivity.java?view=auto&rev=521961
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/RepeatUntilActivity.java (added)
+++ incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/RepeatUntilActivity.java Fri Mar 23 19:13:39 2007
@@ -0,0 +1,32 @@
+package org.apache.ode.bpel.compiler.bom;
+
+import org.w3c.dom.Element;
+
+/**
+ * Representation of the <code>repeatUntil</code> BPEL 2.0 activity.
+ * @author Maciej Szefler (m s z e f l e r @ g m a i l . c o m)
+ */
+public class RepeatUntilActivity extends Activity {
+
+ public RepeatUntilActivity(Element el) {
+ super(el);
+ }
+
+ /**
+ * Get the child (repeated) activity.
+ *
+ * @return repeated activity
+ */
+ public Activity getActivity() {
+ return getFirstChild(Activity.class);
+ }
+
+ /**
+ * Get the repeat-until condition.
+ *
+ * @return the repeat-until condition
+ */
+ public Expression getCondition() {
+ return getFirstChild(Expression.class);
+ }
+}
Propchange: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/bom/RepeatUntilActivity.java
------------------------------------------------------------------------------
svn:eol-style = native