The easiest way to do this, use run ant "create.user.webapp" on the build file present in install folder it gives u a user-webapp structure created (normal web app structure) with dependency library copied in WEB-INF/lib folder.
This means you are using jBPM as just another library in your web-app. If you are integrating it with Spring you will get lots of help. And its easy to integrate it with Spring.
You can use sample applicationContext.xml file present in jbpm-4.3/install/src/cfg/spring/ folder. Once you have processEngine bean you can go ahead and build all the services like repository, execution, management, etc... and inject them wherever you need them.
also use spring.jbpm.cfg.xml (available at install/src/cfg/jbpm) for configuring your jbpm.
Ping back if you need further help.
Thanks for ur reply. I dont hv knowledge of spring. is it possible to use jbpm with only tomcat ? or using spring is the only way out ?
can you pls give some hints regarding using the jbpm engine within tomcat after we have created a webapp using ant "create.user.webapp". is there any documentation/turorial available ?
No Spring is not the only way to create jBPM process.
1. You can use jBPM in your standalone application using plain POJO
2. Use OpenEJB plugin for tomcat to get EJB container support in Tomcat since tomcat is mainly JSP/Servlet container.
3. Use Spring (Standalon/Webapplication)
4. Use jBPM in servlets.
So it all depends on you how u want to access jBPM.
I would rather ask you to refer the User Guide & Develop Guide to understand how you can build processes and deploy them. You can deploy processes as a archive or through your POJO/Spring Bean/EJB... using its repository service.
User Guide Link: http://docs.jboss.com/jbpm/v4/userguide/html_single/#introduction
It explains different ways to build & deploy processes.
Once you go through this document you will be more comfortable.
1. Create process engine
2. Get required services reference
3. Deploy process if not yet done
4. Start Process Instance
5. Signal waiting states if any
.... so on
You can carry out steps in whichever manner you like.
1. Explains you how to create process graphically & deploy it. http://docs.jboss.com/jbpm/v4/userguide/html_single/#graphicalprocessdesigner
2. Explains about services, which you can use inside you code to create/deploy/manage processes. http://docs.jboss.com/jbpm/v4/userguide/html_single/#processdefinitionprocessinstanceandexecutions
I am new this environment. I have gone through the doc. I would like to know what is the best way to deploy the jbmp into jboss.
is it better to deploy with the application or it is better to deploy jbpm into jboss then the web application...
I have been looking for help on jbpm...please find time to reply this..it is much appreciated..
i am using Eclipse and jboss tools