Camunda transaction problem

Hi everyone.l am learning camunda and have problem with process .I have simply process that is for leaning .there are 3 service task and a user task .over the user task i add taskListener that has java class .in java class I want to make database process that is save something to table but it is not working . if I use xxRepository.saveAndFlush there appears exception about transaction(no transaction is in progress camunda)

Hello @salimov ,

camunda uses database transactions internally to keep track of the state of a process instance. When adding statements, try not to flush directly, but leave the flush to the open transaction.

If your requirement is to have separate transactions, you will have to configure dedicated transaction managers and datasources.