JBPM integration module

From OpenCms Wiki
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
Copied from this post: http://mail.opencms.org/pipermail/opencms-dev/2006q4/026340.html
+
:Copied from this post: http://mail.opencms.org/pipermail/opencms-dev/2006q4/026340.html
  
Hi there,
+
You can download the module from [http://svn.sourceforge.net/viewvc/*checkout*/opencms-oswf/OpenCms-6.2.1-OSWorkflow-2.8.0/src/cn.langhua.opencms.osworkflow_2.0.12.zip?revision=26&pathrev=26 here]
 
+
You can download the module from
+
http://svn.sourceforge.net/viewvc/*checkout*/opencms-oswf/OpenCms-6.2.1-OSWorkflow-2.8.0/src/cn.langhua.opencms.osworkflow_2.0.12.zip?revision=26&pathrev=26
+
  
 
Here is the release notes:
 
Here is the release notes:
Line 14: Line 11:
 
Tested in Fedora 4 + Tomcat 5.5.17 + MySQL 4.1.11 + OpenCms 6.2.1.
 
Tested in Fedora 4 + Tomcat 5.5.17 + MySQL 4.1.11 + OpenCms 6.2.1.
  
1. Import the osworkflow module into OpenCMS.
+
== Import the osworkflow module into OpenCMS ==
 
Please check whether the following jars are ready
 
Please check whether the following jars are ready
 
in /system/modules/cn.langhua.osworkflow/lib/, if not, you can find them
 
in /system/modules/cn.langhua.osworkflow/lib/, if not, you can find them
 
in osworkflow download:
 
in osworkflow download:
bsh-1.2b7.jar
+
* bsh-1.2b7.jar
jaxen-1.1-beta-5.jar
+
* jaxen-1.1-beta-5.jar
jdom-1.0.jar
+
* jdom-1.0.jar
oscore-2.2.5.jar
+
* oscore-2.2.5.jar
osuser-1.0-dev-2Feb05.jar
+
* osuser-1.0-dev-2Feb05.jar
osworkflow-3.0-dev.jar      (built from osworkflow-2.8.0 source)
+
* osworkflow-3.0-dev.jar      (built from osworkflow-2.8.0 source)
propertyset-1.4.jar
+
* propertyset-1.4.jar
stax-1.1.2-dev.jar
+
* stax-1.1.2-dev.jar
stax-api-1.0.jar
+
* stax-api-1.0.jar
wsdl4j-1.4.jar
+
* wsdl4j-1.4.jar
xfire-aegis.jar
+
* xfire-aegis.jar
xfire-core.jar
+
* xfire-core.jar
osworkflow-opencms_1.0.0.jar  (built from opencms-osworkflow source)
+
* osworkflow-opencms_1.0.0.jar  (built from opencms-osworkflow source)
  
2. Add datasource jdbc/OsWorkflowDS28 in context element in context.xml,
+
== Add datasource jdbc/OsWorkflowDS28 ==
for example:
+
Add datasource jdbc/OsWorkflowDS28 in context element in context.xml, for example:
   <Resource
+
   <Resource name="jdbc/OsWorkflowDS28" auth="Container" type="javax.sql.DataSource" maxActive="10" maxIdle="3" maxWait="2000" username="username" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/osworkflow28?autoReconnect=true"/>
  name="jdbc/OsWorkflowDS28"
+
  auth="Container"
+
  type="javax.sql.DataSource"
+
  maxActive="10"
+
  maxIdle="3"
+
  maxWait="2000"
+
  username="username"
+
  password="password"
+
  driverClassName="com.mysql.jdbc.Driver"
+
  url="jdbc:mysql://localhost:3306/osworkflow28?autoReconnect=true"/>
+
  
3. Configuration:
+
== Configuration ==
There are 3 module parameters: database, username, and password.
+
There are 3 module parameters: database, username, and password.<br />
database: if database=mysql, then you can run the script
+
database: if database=mysql, then you can run the script in /system/modules/cn.langhua.opencms.osworkflow/db/osworkflow/mysql/createtables.sql and droptables.sql to create and drop MySQL OSWorkflow tables. For other databases, please put the right script files at the right place accordingly.
in /system/modules/cn.langhua.opencms.osworkflow/db/osworkflow/mysql/createtables.sql and droptables.sql to create and drop MySQL OSWorkflow tables. For other databases, please put the right script files at the right place accordingly.
+
username and password: A user of Administrators group who can login OpenCms and create osworkflow project and publish resources when necessarily.
username and password: A user of Administrators group who can login
+
OpenCms and create osworkflow project and publish resources when
+
necessarily.
+
  
4. Create OSWorkflow tables.
+
== Create OSWorkflow tables ==
  
5. Restart Tomcat.
+
== Restart Tomcat ==
  
 
Test your installation:
 
Test your installation:
Line 81: Line 65:
 
sponsed the 1st version of this module!
 
sponsed the 1st version of this module!
  
If you find any bugs, please send it to this list or to me directly.
+
PS: The new release of jBPM-OpenCms module may delay one week because of hard disk failure of my notebook.
  
Regards,
+
[[Category:OpenCms modules]]
 
+
Shi Yusen/Beijing Langhua Ltd.
+
 
+
PS: The new release of jBPM-OpenCms module may delay one week because of hard disk failure of my notebook.
+

Latest revision as of 11:25, 27 June 2008

Copied from this post: http://mail.opencms.org/pipermail/opencms-dev/2006q4/026340.html

You can download the module from here

Here is the release notes:

This module can be used in OpenCms 6.2.x.

Installation:

Tested in Fedora 4 + Tomcat 5.5.17 + MySQL 4.1.11 + OpenCms 6.2.1.

Contents

Import the osworkflow module into OpenCMS

Please check whether the following jars are ready in /system/modules/cn.langhua.osworkflow/lib/, if not, you can find them in osworkflow download:

  • bsh-1.2b7.jar
  • jaxen-1.1-beta-5.jar
  • jdom-1.0.jar
  • oscore-2.2.5.jar
  • osuser-1.0-dev-2Feb05.jar
  • osworkflow-3.0-dev.jar (built from osworkflow-2.8.0 source)
  • propertyset-1.4.jar
  • stax-1.1.2-dev.jar
  • stax-api-1.0.jar
  • wsdl4j-1.4.jar
  • xfire-aegis.jar
  • xfire-core.jar
  • osworkflow-opencms_1.0.0.jar (built from opencms-osworkflow source)

Add datasource jdbc/OsWorkflowDS28

Add datasource jdbc/OsWorkflowDS28 in context element in context.xml, for example:

 <Resource name="jdbc/OsWorkflowDS28" auth="Container" type="javax.sql.DataSource" maxActive="10" maxIdle="3" maxWait="2000" username="username" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/osworkflow28?autoReconnect=true"/>

Configuration

There are 3 module parameters: database, username, and password.
database: if database=mysql, then you can run the script in /system/modules/cn.langhua.opencms.osworkflow/db/osworkflow/mysql/createtables.sql and droptables.sql to create and drop MySQL OSWorkflow tables. For other databases, please put the right script files at the right place accordingly. username and password: A user of Administrators group who can login OpenCms and create osworkflow project and publish resources when necessarily.

Create OSWorkflow tables

Restart Tomcat

Test your installation: Click /system/modules/cn.langhua.osworkflow/osworkflow-2.8.0-example/default.jsp. You may run the example successfully. If not, check the installation steps above.

Usage: Start and run an osworkflow instance in administration view.

Source code: You can get the source code from sourceforge.net: svn co https://svn.sourceforge.net/svnroot/opencms-oswf

Changes: 1. Use project to represent a set of resources. 2. Add OSWorkflow permission checks in org.opencms.file.types.A_CmsResourceType.java. So the new permission check order for an existing resource is OSWorkflow permission check and OpenCms permission check.

Thanks: Thanks to Political Department of China Armed Police Headquarter who sponsed the 1st version of this module!

PS: The new release of jBPM-OpenCms module may delay one week because of hard disk failure of my notebook.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox