KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > def > assign > FromExpression


1 package org.jbpm.bpel.def.assign;
2
3 import org.jbpm.graph.exe.Token;
4
5 import org.jbpm.bpel.data.def.Snippet;
6 import org.jbpm.bpel.def.Assign;
7
8 /**
9  * <code>&lt;from&gt;</code> variant that allows processes to perform simple
10  * computations on properties and variables.
11  * @see "WS-BPEL 2.0 &sect;9.3"
12  * @author Alejandro Guízar
13  * @version $Revision: 1.4 $ $Date: 2005/05/31 00:49:53 $
14  */

15 public class FromExpression extends Assign.From {
16   
17   private static final long serialVersionUID = 1L;
18   private Snippet expression;
19   
20   public FromExpression() {
21   }
22   
23   public Object JavaDoc extract(Token token) {
24     return expression.getScript().evaluate(token);
25   }
26
27   public Snippet getExpression() {
28     return expression;
29   }
30   
31   public void setExpression(Snippet expression) {
32     this.expression = expression;
33   }
34 }
35
Popular Tags