cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying a process w/ JPA entities

chris_joelly
Champ in-the-making
Champ in-the-making
Hello,

i want to use Explorer and Probe to do some process prototyping and
some process variables should be entities managed by JPA.

As i understood the process definition and the needed forms should be
bundled into a BAR file which will be deployed to the process engine by
Probe.
And the JPA entities and other classes needed by the process needs
to be bundled into a JAR file which needs to be deployed into the
activity-rest webapp of the Activiti distribution.

Is it possible to use JPA entities as process variables within Probe and
Explorer? And if yes, how can i configure JPA?

Thanks
Chris
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Hi,

Check out the chapter "JPA" in the userguide, that will get you started:

http://activiti.org/userguide/index.html#N1140A

chris_joelly
Champ in-the-making
Champ in-the-making
Thank u for your reply.

I already read that chapter in the users guide but i am not sure how to
(re-)configure Explorer and Probe so that i can deploy process which
make use of JPA.

Should i replace the activity-cfg.jar file in the deployed activity-rest
webapp, add a persistence.xml to the META-INF and is this sufficient?

Chris

frederikherema1
Star Contributor
Star Contributor
Chris,

That should do the trick, yes.