[jboss-user] [JBoss jBPM] - Re: Access field of an Object in a Controller variable
beve
do-not-reply at jboss.com
Thu May 29 11:23:29 EDT 2008
Ah, ok thanks!
Just thinking about this...would it be possible to use an expression language like MVEL to support thes kind of access that I was on about?
Something similar to this (ContextInstance):
public Object getVariable(String name, Token token) {
| Object variable = null;
| TokenVariableMap tokenVariableMap = getTokenVariableMap(token);
| if (tokenVariableMap != null) {
| try {
| variable = MVEL.eval( name, tokenVariableMap.getVariablesLocally());
| }
| catch( Exception e )
| {
| variable = tokenVariableMap.getVariable(name);
| }
| }
| return variable;
| }
|
Regards,
/Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154361#4154361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154361
More information about the jboss-user
mailing list