AnsweredAssumed Answered

Expression

Question asked by dev1 on Dec 16, 2010
Latest reply on Dec 20, 2010 by dev1
according this code mentioned in "ACTIVITI" user guide:-

public class ReverseStringsFieldInjected implements JavaDelegate {

  private Expression text1;
  private Expression text2;

  public void execute(DelegateExecution execution) {
    String value1 = (String) text1.invoke(execution);
    execution.setVariable("var1", new StringBuffer(value1).reverse().toString());

    String value2 = (String) text2.getValue(execution);
    execution.setVariable("var2", new StringBuffer(value2).reverse().toString());
  }
}


"Expression" has a method called "invoke"…but when i used the same piece of code I am getting some errors…

Attachments

Outcomes