Author: assaf
Date: Fri Sep  1 13:47:36 2006
New Revision: 439471

URL: http://svn.apache.org/viewvc?rev=439471&view=rev
Log:
Added failureHandling extensibility element

Added:
    
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
   (with props)
Modified:
    
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OActivity.java

Added: 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java?rev=439471&view=auto
==============================================================================
--- 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
 (added)
+++ 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
 Fri Sep  1 13:47:36 2006
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.bpel.o;
+
+import javax.xml.namespace.QName;
+import java.io.Serializable;
+
+/**
+ * Holds information about the failure handling of this activity.
+ */
+public class FailureHandling implements Serializable {
+  
+  public static final String EXTENSION_NS_URI = 
"http://ode.apache.org/activityRecovery";;
+  public static final QName FAILURE_FAULT_NAME  = new QName(EXTENSION_NS_URI, 
"failure");
+  public static final QName FAILURE_EXT_ELEMENT = new QName(EXTENSION_NS_URI, 
"failureHandling");
+
+  // Number of times to retry the activity if failure occurs.
+  // Defaults to zero.
+  public Integer retryFor;
+
+  // Time delay between retries of the activity, in seconds.
+  public Integer retryDelay;
+
+  // If true, fault when failure occurs, otherwise, enter activity recovery 
state.
+  public Boolean faultOnFailure;
+
+}

Propchange: 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/FailureHandling.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OActivity.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OActivity.java?rev=439471&r1=439470&r2=439471&view=diff
==============================================================================
--- 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OActivity.java 
(original)
+++ 
incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OActivity.java 
Fri Sep  1 13:47:36 2006
@@ -34,6 +34,7 @@
   public final Set<OLink>sourceLinks = new HashSet<OLink>();
   public final Set<OLink>targetLinks = new HashSet<OLink>();
   public String name;
+  public FailureHandling failureHandling;
 
   public String getType() {
     return ObjectPrinter.getShortClassName(getClass());


Reply via email to