Activiti jpa integration does not merge detached entities

Description

If an entity is fetched in a first transaction, then modified after that transaction completes and passed to activiti through setVariable() in a second transaction, the changes to the entity are not merged into the new persistence context.

Solution:
if an entity is in state 'detached', merge it into the current persistence context.

Assignee

Daniel Meyer (camunda)

Reporter

Daniel Meyer (camunda)

Labels

None

Components

Fix versions

Priority

Major
Configure