Contents
Build
* Local Activiti integration is included in standard OpenIDM 2.1 build.
* Activiti Explorer is not included in the 2.1 build so you need to build it yourself.
Integrate Activiti Explorer with Local Activiti Engine
* For OpenIDM 2.1, if you want to access Activiti Explorer web app, you need to follow this article and build from source trunk.
Briefly
* Download openidm-ui-demo and extract it into trunk/openidm directory.
* Edit openidm/pom.xml and add openidm-ui-demo module:
<module>openidm-ui-demo</module>
* Edit openidm/openidm-zip/pom.xml and add openidm-ui-demo dependency:
<dependency> <groupId>org.forgerock.openidm</groupId> <artifactId>openidm-ui-demo</artifactId> <version>${openidm.version}</version> </dependency>
* Do Maven:
mvn clean package
* Follow normal install and Activipti Explorer can be accessed from URL http://localhost:8080/idm
* Setup penidm-ui-demo module by following previous section.
* Setup JDBC repository, e.g MySQL, and OpenIDM and Activiti will share the same JDBC user store.
* To setup MySQL as OpenIDM user store, see this post.
* Check conf/repo.jdbc.json to make sure the existence of:
"find-by-id" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE obj.objectid = ${id} AND objtype.objecttype = ${_resource}",
Check Workflow Integration
* Check workflow and JDBC repo bundle:
-> scr list ... [ 16] [active ] org.forgerock.openidm.repo.jdbc [ 15] [active ] org.forgerock.openidm.workflow ...
* List workflows:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --request GET "http://localhost:8080/openidm/workflow" {"result":[{"name":"Osgi process","processDefinitionId":"osgiProcess:1:3","key":"osgiProcess"}]}
* Create workflow instance:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --request POST "http://localhost:8080/openidm/workflow/processinstance?_action=createProcessInstance" \ --data '{ "key":"osgiProcess" }' {"_id":"101","processInstanceId":"101","status":"ended","businessKey":null,"processDefinitionId":"osgiProcess:1:5"}
References
* OpenIDM 2.1 – Howto get the Activiti Explorer running in OpenIDM