Get Mendix Version at runtime

2
I would like to persist the version of mendix that an application is running under to my application database. Is it possible to get this value at runtime in either a microflow or a Java action?
asked
1 answers
7

In a Java action (only from Mendix version 2.4.5 onwards it seems) you can get the runtime version as follows:

import com.mendix.core.conf.Configuration;

Configuration.RUNTIME_VERSION.toString();

In version 2.4.5 this results in the string value "2.4.5".

The RUNTIME_VERSION is actually of type com.mendix.core.conf.RuntimeVersion (according to the Javadoc), but this class seems to be obfuscated, hence the toString() call.

answered