How to increase transaction timeout

Hi,

I have noticed, that the transaction timeout set on script execution (that means operation script or groovy connector script etc.) is 60 seconds. How can I increase it? My question concerns community version.

Hello,
you can add a timeout value in your bitronix-config.properties file. For example:
bitronix.tm.timer.defaultTransactionTimeout=120
120 is a value in seconds.
Disclaimer: not sure about possible impacts on Bonita performance or any undesired side-effects, so be sure to test these setting first and to find an appropriate value for your environment.

Thanks for your answer.

I am aware that big transaction timeouts could cause side effects. But I need more time for two reasons:

  1. Debugging an external script using apiAccessor - it’s frustrating when after 60 seconds you can’t get any data from Bonita. The global timeout increase is fine in this case.
  2. Synchronizing Bonita users and groups with external source. In this case the timeout increase for single transaction would be better. I guess it’s not that easy to do that?