Posted by: tszao | August 21, 2007

jBPM JPDL in Eclipse connecting to our jBPM server

Picking up where we left off from last time (see http://brianbruijn.wordpress.com/2007/08/20/jbpm-and-eclipse/ and http://brianbruijn.wordpress.com/2007/08/20/setting-up-jboss-and-jbpm/ if you need to catch up), we now need to get the software pointing to the correct locations and servers.

1) Start your new installation of Eclipse with the Jboss and jBPM plug-ins installed. The first thing you will need to do is change perspective. The system by default will be set up to run in the “Java EE” perspective. There are a couple of ways to change the perspective. I will cover one of them but feel free to use the tried and true “hunt and peck” method to find other ways of doing the same thing. Click on the “Window” option on the top navigation list of your Eclipse editor. A drop down of options will show up. Highlight “Open Perspective” and a side bar of options will open and you will need to highlight the “Other …” option and click on it. The “Open Perspective” window will open up. Highlight the “jBPM JPDL” option and click the “OK” button. Your perspective will change to the “jBPM JPDL” perspective.

SIDE NOTE: For those of you who do not know what the perspective is, here is a quick definition. The perspective is the actual interface you use to accomplish the task you want to accomplish. Real clear, huh? In this case the default perspective is “Java EE”. It would be used for writing Java code. We want to change to the “jBPM JPDL” perspective because we want to work with the “jbpm-console” that we installed and generate JPDL code.

2) The next thing you will need to do is set up your “Runtime Locations”. Why is it called a Runtime Location? I don’t know. That is just what the program says. I think it has something to do with the environment that you will be using the tool with but don’t hold me to it. Also, this will be done based on the two previous posts about this topic. Please feel free to reference them if you have a question about software installations and/or locations.

We will need to click on the “Window” link in top list of navigation items again. The drop down menu will show up and this time we will need to highlight and click on the “Preferences…” link. This will open up the “Preferences” window. On the left hand side you will see the option for “JBoss jBPM”. Click on the “+” sign next to the name and a list of four sub-links should show up. Click on the “Runtime Locations” and the area on the right hand side of the “Preference” window will change. The heading of the right side of the window will be “Runtime Locations”. Click the “Add…” button so that we can add our installation location. The “Add Location” box will pop up and beside the “Name:” label you will need to type in “jbpm-jpdl-3.2.1” (without the quotes). You can choose the “Name:” to be what ever you want but I choose to make it the same as the directory in the JBoss folder we will be working from. Next we will need to click the “Search…” button to navigate to the location of our installation. When the “Browse For Folder” window opens up you should see a navigation tree. Navigate to the following location “C:\jboss\jbpm-jpdl-3.2.1”, click on it to highlight it and click the “OK” button. You should now see inside the field beside the “Location:” label the following, “C:\jboss\jbpm-jpdl-3.2.1”. This assumes that you used the mappings from the previous post to set up your JBoss/jBPM instance. Click the “OK” button again and you will see the installation location you just entered show up in the list. Click the check box next to “jbpm-jpdl-3.2.1” and then click the “Apply” button. This will establish your current server as the active server that the system will post to.

3) While we are in here, we will need to confirm that the “Server Deployment” is all pointing to the correct place as well. So, on the left side of the “Preferences” window click on “Server Deployment” to change right hand side of the screen. The following fields should be filled in with the corresponding values.

Server name: localhost
Server port: 8080
Server deployer: /jbpm-console/upload

If this is what you see, you should be good to go. Click the “OK” button in the lower right hand corner of the “Preferences” window and you should be taken back to your primary interface.

You should now be set-up to connect with and deploy to your JBoss-jBPM server. The next post on this topic will involve setting up a test process and if I learn how to deploy one by then I will be sure to include it as well.

Responses

Hey

Your site really helped me in configuring JBoss jbpm. Thanks a lot for making it easier.

Leave a response

Your response:

Categories