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 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 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 41 public void accept(BpelVisitor visitor) { 42 visitor.visit(this); 43 } 44 45 } 46 | Popular Tags |