KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jbpm.bpel.def;
2
3 import org.jbpm.graph.exe.ExecutionContext;
4
5 import org.jbpm.bpel.service.def.Replier;
6
7 /**
8  * A reply activity is used to send a response to a request previously accepted
9  * through a receive activity.
10  * @see "WS-BPEL 2.0 §11.4"
11  * @author Juan Cantú
12  * @version $Revision: 1.4 $ $Date: 2005/05/31 00:49:53 $
13  */

14 public class Reply extends Activity {
15   
16   private static final long serialVersionUID = 1L;
17   
18   private Replier replier;
19   
20   public Reply() {
21   }
22   
23   public Reply(String JavaDoc name) {
24     super(name);
25   }
26
27   public void execute(ExecutionContext context) {
28     replier.reply(context.getToken());
29     leave(context);
30   }
31
32   public Replier getReplier() {
33     return replier;
34   }
35  
36   public void setReplier(Replier replier) {
37     this.replier = replier;
38   }
39   
40   /**{@inheritDoc}*/
41   public void accept(BpelVisitor visitor) {
42     visitor.visit(this);
43   }
44
45 }
46
Popular Tags