1 package org.jbpm.bpel.def.assign; 2 3 import javax.xml.namespace.QName ; 4 5 import org.jbpm.graph.exe.Token; 6 7 import org.jbpm.bpel.data.def.VariableDefinition; 8 import org.jbpm.bpel.data.exe.MessageVariableInstance; 9 import org.jbpm.bpel.def.Assign.To; 10 11 18 public class ToProperty extends To { 19 20 private static final long serialVersionUID = 1L; 21 private VariableDefinition variable; 22 private QName property; 23 24 public void assign(Token token, Object value) { 25 MessageVariableInstance instance = (MessageVariableInstance) variable.getInstance(token); 26 instance.setProperty(property, value); 27 } 28 29 public VariableDefinition getVariable() { 30 return variable; 31 } 32 33 public void setVariable(VariableDefinition variable) { 34 this.variable = variable; 35 } 36 37 public QName getProperty() { 38 return property; 39 } 40 41 public void setProperty(QName property) { 42 this.property = property; 43 } 44 } 45 | Popular Tags |