5 Replies Latest reply on Sep 24, 2009 9:36 AM by Jeff Yu

    jBPM4 and JBoss IDM

    Santiago Erquicia Newbie

      I'm trying to figure out how to integrate jBPM 4.1 Identity with JBoss IDM. The final goal is to use JBoss IDM for both Seam and jBPM 4 so I can use the same back end for identity for both products. I already installed and make it work IDM with Seam.

      According to the developer's guide it is already implemented, but the jboss/build.xml mentioned doesn't exist in jBPM 4.1 as downloaded from sourceforge.

      I saw on JIRA (https://jira.jboss.org/jira/browse/JBPM-2172) that this integration is work in progress.

      It looks like that the jira issue is more about auto configuring IDM for jBPM rather than implementation. I saw that at jbpm-4.1/src/org/jbpm/pvm/internal/identity/impl there is a JBossIdmIdentitySessionImpl.java.

      Is this functionality working? If it is, any idea how to configure it?

      Best regards

        • 1. Re: jBPM4 and JBoss IDM
          Jeff Yu Master

          I just checked the jbpm 4.1, the installation has been taken out in this release. The integration work is done. I kept it as 'work in progress' as there was an issue in the IDM, it doesnt provide the user defined groupId. Tom like to IDM supports it.

          In the current code base, I am using the idm gorupId -> jBPM groupId mapping as a interim solution. The functionality should work, but I haven't tested against jbpm 4.1. It works against jbpm 4.0 AFAIK.

          Also, the integration work was only tested against JBoss AS 5.x.

          I will provide the installation step after I verified it against jbpm 4.1.

          -Jeff

          • 2. Re: jBPM4 and JBoss IDM
            Santiago Erquicia Newbie

            OK. Great!

            I'll wait for your instructions on how to set it up.

            I'm using JBoss 5.1.GA, Seam 2.2 and JBoss Identity 1.0.0.beta1.

            Regards

            • 3. Re: jBPM4 and JBoss IDM
              Jeff Yu Master

              Hi,

              below is the step to use jboss idm in jBPM 4.1 manually.

              1. Download the JBoss Identity IDM 1.0.0.Beta1 from here http://repository.jboss.com/maven2/org/jboss/identity/idm/jbossidm/1.0.0.Beta1/jbossidm-1.0.0.Beta1.zip. (Sorry for that didn't put this distribution into the download page yet, will do it in the future).

              2. Extract the zip ball, update the build.properties file, to config your database, jboss.home etc.

              3. Go to the jboss folder, run: ant install.jbossidm.into.jboss to install the jbossidm.

              4. Go to the JBoss AS (which jbpm 4.1 was deployed to)/server/$config (like default)/deploy/jbpm/jbpm-service.sar/jbpm.cfg.xml

              Replace the
              with

              5. Start the AS server, you should be ready to go.

              Sorry for the inconvenience, I will work on this task later then.. Please let you know if you have any other issues.

              *NB, the jBPM console is using the jbpm built-in identity, if you want to change that, you need to add another application-policy in the jbpm-service.sar/META-INF/jboss-service.xml

              • 4. Re: jBPM4 and JBoss IDM
                Ronald van Kuijk Master

                Jeff,

                Something went missing in your post in step 4

                Ronald

                • 5. Re: jBPM4 and JBoss IDM
                  Jeff Yu Master

                  Ah... I forgot to escape the xml tag. Thanks Ronald. ;-)

                  Here is the complete steps.

                  1. Download the JBoss Identity IDM 1.0.0.Beta1 from here http://repository.jboss.com/maven2/org/jboss/identity/idm/jbossidm/1.0.0.Beta1/jbossidm-1.0.0.Beta1.zip . (Sorry for that didn't put this distribution into the download page yet, will do it in the future).

                  2. Extract the zip ball, update the build.properties file, to config your database, jboss.home etc.

                  3. Go to the jboss folder, run: ant install.jbossidm.into.jboss to install the jbossidm.

                  4. Go to the JBoss AS (which jbpm 4.1 was deployed to)/server/$config (like default)/deploy/jbpm/jbpm-service.sar/jbpm.cfg.xml

                  Replace the

                  <import resource="jbpm.identity.cfg.xml" />

                  with
                  <import resource="jbpm.jboss.idm.cfg.xml" />

                  5. Start the AS server, you should be ready to go.