I’m trying to do some performance optimization for the execution flow in the high-loaded BPM service.
Apart from everything else I found calls of groovy inline scripts in the flow conditions like:
execution.getVariable("isOK") == true
Are there any performance benefits to use JUEL in condition expressions over groovy?
For a simple variable evaluation like that, why call out to a script at all?
If the condition is ${isOK} that would evaluate to a boolean.
This should result in slightly improved performance, as you’re not calling out to the script engine on each evaluation.
This is not my solution, I’m just auditing the process structure and code. And I have the same concerns that calling the scripting engine instead of evaluating expressions can hurt performance.
But I need facts for developers. I think I will do some load testing and collect metrics.