简体   繁体   中英

What is advantage of using MVEL?

I'm learning jBPM engine, and what I have noticed is that it uses MVEL dialect by default in process design. So the question is: what is the advantage of using MVEL instead of pure Java? Will I have troubles with more complex processes if I'll start to program them in Java?

jBPM Documentations writes:

« Note that MVEL accepts any valid Java code and additionally provides support for nested access of parameters. For example, the MVEL equivalent of the Java call person.getName() is person.name. MVEL also provides other improvements over Java and MVEL expressions are generally more convenient for business users. »
-- jBPM Documentation
-- https://docs.jbpm.org/7.54.0.Final/jbpm-docs/html_single/#:~:text=Note%20that%20MVEL,for%20business%20users .
-- Wed Dec 08 2021

So the MVEL notation is:

  • short;
  • simple;
  • (non-technical) user friendly.

There are situations where solutions in MVEL are intuitively simple, but in Java style complicated or unknown. See, for example:

How to call a setter method in the Data Assignments I/O in a jbpm task?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM