[jboss-user] [JBoss jBPM] - Re: Ability to choose from determined values

falazar do-not-reply at jboss.com
Fri Jul 21 10:25:45 EDT 2006


You need to deal with a "Web Application"  which really has nothing to do with jBPM, it is something totally seperate.  You will need some sort of java web app, the starter kit is currently using JSP technology (http://java.sun.com/products/jsp/) so you can take what is created there and expand upon it, that is probably the easiest way, but if you havnt done any JSP pages, then you are in for a little work learning the system.
  Basically it is similar to php or perl pages, but it can call all the API's attached to the jBPM system, so you can interact there.

Our info:
JBMP JSP and Java Beans

JSP Pages
/home/broccol/jbpm/jbpm-starters-kit-3.1.1/jbpm/src/resources/jbpm.war

We changed the login.jsp to have a username login box, and added a password box.

Here is the actual login java
/home/broccol/jbpm/jbpm-starters-kit-3.1.1/jbpm/src/java.webapp/org/jbpm/webapp/bean/UserBean.java
/home/broccol/jbpm/jbpm-starters-kit-3.1.1/jbpm/build/classes.webapp/org/jbpm/webapp/bean/UserBean.class

After editing the files, you must recompile with ant:

ant -f build.deploy.xml clean build.webapp build.service.archive

and then copy over two files (from the jbpm/build directory)

cp build/jbpm.[sw]ar ../jbpm-server/server/jbpm/deploy/

To shutdown and start server

bin/shutdown.sh shutdown
bin/run.sh -c jbpm > & jbpm.log &


So as you see there, in the jbpm.war file are a few of the jsp pages that create the webapp, you can go in there and mess aroudn with them a bit, save, rebuild and check your changes.

The 
/home/broccol/jbpm/jbpm-starters-kit-3.1.1 is just the location that we installed the starters kit in.

Be aware though, that the 3.2 version of jBPM will be using "faces" a different, hopefully better system than JSP, so if you intend to use the next version, you might should wait for that.

James Ratcliff

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959904#3959904

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959904



More information about the jboss-user mailing list