Liferay dxp & Camunda

I Need to integrate camunda with liferay dxp 7.0.
I Need to guarantee the consistency of data between camunda data process and liferay data model.
I have tried to use rest api but It Is too complicated to guarantee the unit of work (how to manage the read time out? rollback or not)
I would like to know if It is possibile to use Java api and delegate the transaction management to the container.
Thank in Advance
DB