Hi Vasif,
you can not use the same transaction as camunda. You have to provide a transaction manager for camunda if you want to do things in the same transaction. For example, you can use Spring to provide a transaction manager. This works for an application server and also standalone.
However, a simpler way may be compensation events. When an error occurred then you throw a compensation event. The compensation event is caught by all tasks that are completed successful and have a compensation handler (a task attached to a compensation boundary event). The compensation handler should undo / compensate the actions of the task, for example delete db entities.
Greetings,
Philipp