cancel
Showing results for 
Search instead for 
Did you mean: 

Expression

dev1
Champ in-the-making
Champ in-the-making
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…
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Hi DEV,

Thanks for pointing that out. This is an error that slipped into the userguide, when merging method- and value-expressions. It should be getValue() as well.

I'll fix this in trunk right now.

dev1
Champ in-the-making
Champ in-the-making
Hi,

Can i check out the updated code now ? But I am guessin g that an svn update on my trunk will update many other files as well whichever  got changed since the last time i checked out. I am afraid if the current version in svn is a stable code and it will not affect my existing other functionalities. Or if this change is minor and independent, i.e only in 1 or 2 files , then if you could let me know the exact files, then i will update only those files .

Thanks,
Dev.