doboss [https://community.jboss.org/people/doboss] modified the document:

"Simple JBPM 5.4 inside JBoss AS 7.1.1 web app example."

To view the document, visit: https://community.jboss.org/docs/DOC-48240

--------------------------------------------------------------
Attached is a simple Eclipse project which creates a deployable web app which 
contains all the basics to run JBPM 5.4 inside a web app ussing persistence. 
The project is deployed in a JBoss AS 7.1.1 server which was created using the 
JBPM 5.4 installer. This project uses PostgreSQL as the database. The JBPM 
process is read from a local Guvnor instance.

This example was created by combining a few other existing examples together 
and then adding some stuff I've figured out along the way.

Anyway, hopefully this will help get people going using JBPM in thier own web 
apps.

Here are the instructions which are also found in the web apps home page:

1. Install your jdbc drivers into your JBoss AS installation. (I did mine as a 
module following  
https://community.jboss.org/docs/DOC-16657#Installing_a_JDBC_driver_as_a_module 
this.)
2. Create a new empty database/schema called "testJBPM" in your database with 
permissions for a user "jbpm" and password "jbpm". (If you are not using 
PostgreSQL or want to change the connection information, update 
jbpm-in-webapp-ds.xml)
3. Create a new package in Guvnor called "testPackage". (Change the URL in 
KBaseService and the packageName in ScriptTeask.bpmn if you want to use a 
different package name)
4. Create a pojo model jar containing HelloService.java and Person.java the and 
deploy it to the testPackage inside guvnor. (From eclipse basically select the 
2 files and do "Export->Java->Jar file. Name it whatever and upload it to 
Guvnor")
5. Upload ScriptTask.bpmn to Guvnor in the same package.
6. Build the testPackage in Guvnor (Click "Build package" button in the edit 
tab))
7. Deploy this web app to your jboss server (The needed tables will be built in 
your database because "hibernate.hbm2ddl.auto" is set to "update" in 
persistence.xml)
8. Go to  http://localhost:8080/jbpm-in-webapp/ 
http://localhost:8080/jbpm-in-webapp/
--------------------------------------------------------------

Comment by going to Community
[https://community.jboss.org/docs/DOC-48240]

Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2034]
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to