[jboss-user] [jBPM] - Re: why to use drools rules and not Java code?

Kris Verlaenen do-not-reply at jboss.com
Tue Jan 18 07:21:37 EST 2011

Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: why to use drools rules and not Java code?"

To view the discussion, visit: http://community.jboss.org/message/581532#581532

MVEL is a scripting language, but it is a superset of Java, so any Java expression is also an MVEL expression.  Though you can do more with MVEL, e.g.

myVariable = myPerson.name
(which would be equivalent to myVariable = myPerson.getName())

You can check out the MVEL documentation for all details:
 http://mvel.codehaus.org/ http://mvel.codehaus.org/

Regarding context or kcontext, they resolve to the same object, context was the old name we used first, we later switched to kcontext (which is now the preferred) as it is similar to ksession and kbase etc.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110118/f26b8bff/attachment.html 

More information about the jboss-user mailing list