Transactions and processes

I run an embedded process engine , my application does the following

dosomeOp(){
id = generateId()
result = storeInCamunda(id)
storeInOpDb(result+other data)
}

storeInCamunda(){
pe…createProcessInstance(id)
storeInDB()
return someData()
}

When there are exceptions all DB transactions (storeInCamunda and dosomeOp rollback), how do I rollback processInstance creation?

Hi @yemid

Have a look at the following Transactions in Processes | docs.camunda.org

This explains how transactions are handled inside the process engine.
You can control wait states using the Asynchronous Continuations which can be used to control DB rollback.

Hope that helps.

BR
Michael

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.