Closed yanavasileva closed 1 year ago
Next steps: @toco-cam will reach out to the Camunda Champions for feedback of feature usage.
Then we can decide to schedule, prioritize either this or https://github.com/camunda/camunda-bpm-platform/issues/3445
We received limited feedback regarding the JPA questions. Confirming the feature is not widely used.
Decision:
During implementation of a migration test (create JPA variables in 7.19, config process engine plugin, fetch and assert values in 7.20), the following exception is observed:
Therefore I tested manually that the scenario works:
Decision: In order to make progress now, simplify the migration test:
None.
None. openjpa
and hibernate-jpa-2.0-api
are test dependencies that still be used in the instance migration and old engine tests.
None. commons-collections
is a test transitive dependency to openjpa
that I wanted to remove as dependency, so the license has been already checked (Apache 2).
Acceptance Criteria (Required on creation)
engine
,engine-spring
, andspring-boot-starter
where applicableHints
engine
offers support for handling JPA entities as variables.engine-spring
,SpringTransactionsProcessEngineConfiguration
, thejpaEntityManagerFactory
is registered to thesessionFactories
so it can be used in Spring Context.jpaEntityManagerFactory
to provide the feature in Starter context.engine
,engine-spring
, andspring-boot-starter
modules and make easier adopting to Spring and Spring Boot versions. Example, when updating to Spring 6 / Spring Boot 3 mentioned classes above need to be migrated to the Jakarta domain.Links
Breakdown
engine
org.camunda.bpm.engine.impl.variable.serializer.jpa
JPAVariableTest
andorg\camunda\bpm\engine\test\standalone\jpa\camunda.cfg.xml
configurationengine-spring
SpringTransactionsProcessEngineConfiguration#initJPA
,SpringEntityManagerSessionFactory
org.camunda.bpm.engine.spring.test.jpa
org/camunda/bpm/engine/spring/test/jpa/JPASpringTest-context.xml
configuration fileconsider refactor the package structure of engine-spring and introduce impl packages- won't dospring-boot-starter
CamundaJpaConfiguration
,DefaultJpaConfiguration
,JpaProperty
and all relevant source and test code (incl. configuration)sessionFactories
andvariableSerializers
configuration. Consider creating a separate ticket.Dev2QA handover