I wanted to know if there is any example or link available which explains us Step by Step How to persist data in JBPM?
I wanted to make an web App in the sense a user registration form where when a user/human fills the form and clicks on submit button and after that data should be stored in table in my database that is MySQl database.
Any Help on it is appreciated.
Thanks.
I have been struggling with this for the past few days. I have using the JBPM 6.1.0.Final build. I used this maven example webapp project. Quick warning about environment setup: I could only get the project to deploy in JBoss EAP 6.3. I tried in Wildfly 8.1 and 8.2 but I kept getting errors that I couldn't figure out how to fix so your milage may vary. I also ran into some issues with annotations, but I think that is out of the scope of original question.
I had to make a few changes to the persistence.xml to make everything work.
<property name="hibernate.hbm2ddl.auto" value="create" />
This will recreate the database whenever the database deploys. You can change the value to from 'create' to 'validate' once the database has been created so it does not drop the tables with your old data on each following redeploy.Those were my major blockers while trying to get the project to run. I hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With