Is there any reason why you are trying to do this on the Studio and not on a runtime? My answer works for a real runtime but I never tried on a Studio.
Here is some information from the official documentation.
To change the HTTP Session is one part of the solution, you also need to apply the same to the Bonita BPM Engine Session. For this, you need to configure a different session duration by editing the bonita.tenant.session.duration property (ms) in the file bonita-tenant-community-custom.properties of the platform configuration. To make the edition, you will need to use the platform setup tool to pull, edit and push.
Hi everyone,
I’ve read this subjet and it’s same as I need to do, increase the session to more than 1 hour ‘and’ in production (tomcat bundle). But the recipe is not working for me. What I’ve tried:
-Edit file “bonita-tenant-community-custom” (in E:\BonitaCommunity-7.7.4-Tomcat-8.5.31\setup\platform_conf\current\tenant_template_engine) editing the next line: #bonita.tenant.session.duration=3600000 (to other value ex. 5400000)
-setup push
-restart tomcat service (my bundle works in service mode)
…
but nothing changes.
Is there something missing ? or an other variant of setup?
Thanks in advance.
A - Here is how to update the HTTP Session timeout in Bonita BPM Tomcat Bundle, for Bonita version 7.4.x or higher:
The HTTP tomcat session timeout can be updated in the following file:
[1]. Stop Tomcat server with the command:
Windows <TOMCAT_HOME>\stop-bonita.bat
Linux <TOMCAT_HOME>/stop-bonita.sh
[2]. Edit file <TOMCAT_HOME>/server/conf/web.xml
[3]. Change the value of (default session timeout (60 in minutes) for all newly session created):
<session-timeout>60</session-timeout>
[4]. Start the Tomcat server with command:
Windows <TOMCAT_HOME>\start-bonita.bat
Linux <TOMCAT_HOME>/start-bonita.sh
B - Here is how to update the Bonita Engine Session in Bonita BPM Tomcat Bundle, for Bonita version 7.4.x or higher:
[1]. Stop Tomcat server with the command:
Windows <TOMCAT_HOME>\stop-bonita.bat
Linux <TOMCAT_HOME>/stop-bonita.sh
[2]. Run the setup tool to retrieve the latest configuration: Run setup.[sh|bat] pull
[3]. Edit the following 3 files for your whole platform (where <TENANT_ID> is the ID of your tenant, 1 by default ):
<TOMCAT_HOME>/setup/platform_conf/current/tenants/<TENANT_ID>/tenant_engine/bonita-tenant-community-custom.properties
<TOMCAT_HOME>/setup/platform_conf/current/tenant_template_engine/bonita-tenant-community-custom.properties
<TOMCAT_HOME>/setup/platform_conf/initial/tenant_template_engine/bonita-tenant-community-custom.properties
[4]. Uncomment the bonita.tenant.session.duration property and set the value at your convenience (3600000 ms --1 hour-- is the default value)
## Session service
## Session duration in ms
bonita.tenant.session.duration=3600000
[5]. Run setup.[sh|bat] push
[6]. Start the Tomcat server with command:
Windows <TOMCAT_HOME>\start-bonita.bat
Linux <TOMCAT_HOME>/start-bonita.sh
Make sure you perform all these steps, this should work.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.