This content has been marked as final.
Show 2 replies
-
1. Re: Help storing process variables using JPA
swiderski.maciej May 19, 2015 1:31 AM (in response to clp207)take a look at this example project that does exactly the thing you need. Note two main aspect of this project:
- utility class and extended JPAPlaceholderResolverStrategy that can be found here these are required to make sure hibernate will find entities from the kjar - in 6.3 this will already be in regular code base so no need for extra classes in kjar but for 6.2 they are still required
- defined marshaling strategy in deployment descriptor that refers to extended implementation and pass the classLoader
With that you should be able to store entities from the project with jpa as process variables
HTH
-
2. Re: Help storing process variables using JPA
clp207 Jun 3, 2015 10:51 AM (in response to clp207)Maciej,
I was able to use your example and create new processes with my custom JPA entity. However, I'm having problems using the remote API to retrieve the variable.
When I hit the rest endpoint
/rest/task/11/content?deploymentId=myDeploymentId
I see this warning in the log
Exception while unmarshaling content: java.lang.IllegalStateException: No strategy of type persistence.ProjectJPAResolverStrategy available.
I do get a response with a long content string but I don't know how to deserialize it.