Getting Started with jBPM 4.0 - (Part I )

jBPM 4.0 was out yesterday, so I played it with a simple example, also include installing the eclipse plugin, and see the jbpm console, which I haven't tried them out before, to get a feeling about them. Below are the steps that I did, hopefully you find it helpful for you to get started.

Install jBPM and JBoss

1. Download the jbpm 4.0 distribution.
2. Extract it into your local directory, here mine is: /local/deploy
3. Go to jbpm-4.0/jboss.
4. Added the build.properties into ${user.home}/.jbpm4 directory if you want to update the default properties in the ant script. (below is what I did, I used the jboss-5.0.1.GA, and I already had the zip ball in the /local/softwares directory)

database=hsqldb
jboss.version=5.0.1.GA
jbpm.parent.dir=/local/deploy
jboss.distro.dir=/local/softwares
You can refer to this wiki entry for detail.
5. run following command to install jboss & jbpm.
ant install.jboss
ant install.jbpm.into.jboss
Now, you go to the jbpm-4.0/jboss-5.0.1.GA, run:
bin/run.sh -c default.

It should start the jbpm server properly, later then we need to populate the schema & initialized sqls.

Import jBPM db schema and identity sql

1. Go to jBPM-4.0/db, run following command to populate the schema & sql.
ant create.jbpm.schema
ant load.example.identities
Now, you can go to http://localhost:8080/jbpm-console, use the 'alex/password' as the username and password combination, you should be able to log in the jbpm console.

Install the jBPM eclipse plugin

I won't described the steps for its installation, as it was very well documented in the user guide.
Note, it was based on the eclipse 3.5 jee distribution.

In the next entry, we will try to build a simple process by using the Eclipse GUI.