Child pages
  • OpenIDM 2.1 - Howto get the Activiti Explorer running in OpenIDM
Skip to end of metadata
Go to start of metadata

Instructions

This quick howto explains how to get the Activiti Explorer user interface up and running with OpenIDM 2.1 providing a dashboard that easily can be used to expose workflows and tasks, perform some basic account administration, and to allow approvers and administrators to react on manual actions.

Use the latest OpenIDM 2.1.0-SNAPSHOT codebase with the latest Activiti 5.9-SNAPSHOT. Instructions on how to do this, please refer to OpenIDM 2.0 - Howto build OpenIDM from source.

Extract the attached openidm-ui-demo project in the trunk root, and make the following changes on the actual project. Two pom.xml files needs to be adjusted from the check out source code to include the Explorer UI. Lines marked with '+' should be added.

openidm/pom.xml

...
         <module>openidm-ui</module>
 +       <module>openidm-ui-demo</module>

openidm/openidm-zip/pom.xml

...
               <dependency>
                    <groupId>org.forgerock.openidm</groupId>
                    <artifactId>openidm-workflow-activiti</artifactId>
                    <version>${openidm.version}</version>
                </dependency>
+              <dependency>
+                  <groupId>org.forgerock.openidm</groupId>
+                  <artifactId>openidm-ui-demo</artifactId>
+                  <version>${openidm.version}</version>
+               </dependency>
...

compile the project:

$ mvn clean install -Pactiviti

It will deploy the UI to http://localhost:8080/idm and install the default users. kermit:kermit.

Using a JDBC repository, the explorer can use managed users as source for users and credentials.

Adjust the $OPENIDM/managed.json to include support for a group object.

 {
    "objects" : [
        {
            "name" : "user"
        },
        {
            "name" : "group"
        }
    ]
}

Login using the default kermit:kermit.

Workflows (.bar files) can now be placed in the $OPENIDM/workflow directory and gets picked up and accssible via the Activiti Explorer.

Known issues:

If the application starts with NullPointerException the go to the http://localhost:8080/system/console and restart the OpenIDM Demo Web Application bundle.
If there is a message "reference to bean 'userCache' while setting bean property 'userCache'" just reload the page

  • No labels