Expression
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2010 04:51 AM
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…
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…
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2010 06:04 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2010 12:09 AM
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.
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.
