cancel
Showing results for 
Search instead for 
Did you mean: 

How pluggable is JPA support?

chrisc
Champ in-the-making
Champ in-the-making
I noticed that you can pass JPA entities in as process parameters/variables.

How pluggable is the JPA support? We have large apps based on JDO and we were wondering how easy would it be for us to add JDO support to Activiti.

i.e. is there a plug-in interface that Activiti uses to abstract its interaction with a particular persistence mechanism?
2 REPLIES 2

chrisc
Champ in-the-making
Champ in-the-making
I have found the DelegateInterceptor 'plugin' interface which looks like users can configure an interceptor prior to Delegates being invoked.

Presumably, using this we could configure a JdoDelegateInterceptor that makes a JDO PersistenceManager available prior to the invocation of the delegate and closes it upon return from the invocation.

That would help us use JDO objects within JavaDelegate's etc., but from my understanding it doesn't cover the case of using JDO objects as process variables. Is this correct?

Is there another configurable 'plug in' that would enable me to use JDO persisted objects as process parameters?

jbarrez
Star Contributor
Star Contributor
Yes, this is pluggable: check the org.activiti.engine.impl.variable.JPAEntityVariableType and JPAEntityMappings

Ideally, you'd just mimic the JPA integration, but then using JDO