KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > def > Compensate


1 package org.jbpm.bpel.def;
2
3 import org.jbpm.graph.exe.ExecutionContext;
4
5 /**
6  * The <compensate> activity is used to invoke compensation on an inner scope that
7  * has already completed normally. This construct can be invoked only from within
8  * a fault handler or another compensation handler.
9  * @author Juan Cantú
10  * @version $Revision: 1.2 $ $Date: 2005/05/31 00:49:53 $
11  */

12 public class Compensate extends Activity {
13   
14   private static final long serialVersionUID = 1L;
15   
16   private Scope scope;
17   
18   public Compensate() {
19   }
20   
21   public Compensate(String JavaDoc name) {
22     super(name);
23   }
24   
25   public void execute(ExecutionContext context) {
26     // TODO Auto-generated method stub
27
}
28   
29   public Scope getScope() {
30     return scope;
31   }
32   
33   public void setScope(Scope scope) {
34     this.scope = scope;
35   }
36
37   /**{@inheritDoc}*/
38   public void accept(BpelVisitor visitor) {
39     visitor.visit(this);
40   }
41 }
Popular Tags