Using Spring Expression Language to invoke static methods in Flowable


While using Spring Expression Language in flowable to invoke non-static methods works fine, e.g.


it does not seem possible to invoke static methods, e.g.


fails with:

org.flowable.common.engine.impl.javax.el.ELException: Could not resolve function 'T'

Am I doing it wrong or is it just not possible?

Thank you very much in advance!


As workaround I tried using constructors, e.g.

#{new java.text.SimpleDateFormat('yyyy-MM-ddHH:mm:ss').parse(VariableName).after(new java.util.Date())}

but this fails with: Error parsing '#{new java.text.SimpleDateFormat('yyyy-MM-ddHH:mm:ss').parse(VarAttr01).after(new java.util.Date())}': syntax error at position 6, encountered 'java', expected '}'