Where are the runtime timer values stored.

147 views
Skip to first unread message

Arif

unread,
Feb 26, 2021, 1:47:49 PM2/26/21
to jBPM Usage
Hello Team,

    I am using default setup that came with jBPM. Meaning I haven't done any configuration changes for timers. I am wondering where are the runtime timer values are stored and if I want to change their runtime values how would I do that without having any negative impact. I thought that they are stored in jbpm database but that is not the case.

balakri...@gmail.com

unread,
Feb 28, 2021, 11:08:31 PM2/28/21
to jBPM Usage
By default, jBPM will store the timers in an XML file under the location $JBOSS_HOME/standalone/data/timer-service-data/kie-server.kie-server.EJBTimerScheduler/. While it is possible to edit the initial-date, repeat-interval, next-date values in this file, it is not really advisable to do so - except for development purposes. 

Arif

unread,
Mar 1, 2021, 11:03:38 AM3/1/21
to jBPM Usage
Is it possible to change the location of timers from temp data directory to DB ? Any idea what other data like this is stored there ? The reason I am looking for this is because every time I release my changes to prod I have to test them against production data to make sure my new changes works with existing prod data. To achieve this I simply import the prod DB data in to staging server and do my tests. 

Looks like I have to copy the data directory as well but It doesn't look right for me. Any ideas ?

Abhijit Humbe

unread,
Mar 1, 2021, 11:29:23 AM3/1/21
to Arif, jBPM Usage
To save timer details in DB you have to modify below tag  from ejb subsystem in standalone-*.xml file:

<timer-service thread-pool-name="default" default-data-store="db-store">
   <data-stores>
     <!--file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/-->  
     <database-data-store name="db-store" datasource-jndi-name="jboss/datasources/bpmSuiteDS" database="mssql"/> <!-- same datasource as used by RHPAM -->
   </data-stores>
</timer-service>




Abhijit Humbe


--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/81cd9356-0e19-4648-9390-7b94a0c717f3n%40googlegroups.com.

Arif

unread,
Jul 27, 2021, 7:01:33 PM7/27/21
to jBPM Usage
Thanks Abhijit.

   How do I migrate the existing timer values stored in file system to DB, any idea ?

   Also Is there any way I can have both the file and DB data stores and gradually move all the existing timers to DB if timer value migration is not possible ?

Arif

unread,
Dec 6, 2021, 11:21:51 AM12/6/21
to jBPM Usage
Hello experts,

   Can anyone please tell me how to migrate the existing timer values stored in file system to DB store ?

Reply all
Reply to author
Forward
0 new messages