How to access the Bonita Version?

1
+1
-1

Hello,

How can I access, in the JAVA API, the Bonita Version where the code is running?

I see this information is available in the PlatformAPI, but to get this object, it's mandatory to have a PlatformSession ( :-( )

In the MonitoringAPI, there are information on the JVM, but not Bonita itself.

And in the portal, Setting : you have it! I saw a REST API here, but the version is not in the return (it's seem the version in in the HTML only? Strange).

Any type? Any file on the server that I can open and read as a workaround (Hum, I can have a look in a file in /webapps/bonita/WEB-INF/lib/bonita-web-extensions-7.8.4.jar)

Any better idea?

Comments

Submitted by delphine.coille on Mon, 08/03/2020 - 16:12

Hi Pierre-Yves,

can you give a bit more details on your use case? Why do you need to access Bonita version? Thx

Submitted by Pierre-yves Monnet on Wed, 08/05/2020 - 23:00

Hello Dephine,

For a Custom page, I need to access this information in JAVA.

The goal of this page will be to download a patch from a Patch Library server. So, the local server needs to know it's Bonita version to asks the Patch Library server all patches for its version, and only its version.

1 answer

1
+1
-1
This one is the BEST answer!

Hi Pierre-Yves,

The file named server/webapps/bonita/VERSION also contains the version.

For example, call this URL localhost:8080/bonita/VERSION and you'll get:
7.8.4
Bonitasoft © 2019

You just need the bonita application server to be started to access this information, you don't need to have a session.

I hope this helps?

Comments

Submitted by Pierre-yves Monnet on Mon, 08/17/2020 - 18:58

Excellent!

Good workaround.

Notifications