JBPM integration module

(Difference between revisions)
Jump to: navigation, search
(Copied from a post that has the setup info)
 
Line 7: Line 7:
  
 
Here is the release notes:
 
Here is the release notes:
 +
 
This module can be used in OpenCms 6.2.x.
 
This module can be used in OpenCms 6.2.x.
  
Line 33: Line 34:
 
2. Add datasource jdbc/OsWorkflowDS28 in context element in context.xml,
 
2. Add datasource jdbc/OsWorkflowDS28 in context element in context.xml,
 
for example:
 
for example:
  <Resource name="jdbc/OsWorkflowDS28" auth="Container"
+
  <Resource
type="javax.sql.DataSource"
+
  name="jdbc/OsWorkflowDS28"
              maxActive="10" maxIdle="3" maxWait="2000"
+
  auth="Container"
              username="username" password="password"
+
  type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
+
  maxActive="10"
 
+
  maxIdle="3"
url="jdbc:mysql://localhost:3306/osworkflow28?autoReconnect=true"/>
+
  maxWait="2000"
 +
  username="username"
 +
  password="password"
 +
  driverClassName="com.mysql.jdbc.Driver"
 +
  url="jdbc:mysql://localhost:3306/osworkflow28?autoReconnect=true"/>
  
 
3. Configuration:
 
3. Configuration:
There are 3 module parameters: database, username and password.
+
There are 3 module parameters: database, username, and password.
 
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.
Line 51: Line 56:
 
4. Create OSWorkflow tables.
 
4. Create OSWorkflow tables.
  
5. Restart tomcat.
+
5. Restart Tomcat.
 
+
  
 
Test your installation:
 
Test your installation:
Line 58: Line 62:
 
run the example successfully. If not, check the installation steps
 
run the example successfully. If not, check the installation steps
 
above.
 
above.
 
  
 
Usage:
 
Usage:
Line 84: Line 87:
 
Shi Yusen/Beijing Langhua Ltd.
 
Shi Yusen/Beijing Langhua Ltd.
  
PS: The new release of jBPM-OpenCms module may delay one week because of
+
PS: The new release of jBPM-OpenCms module may delay one week because of hard disk failure of my notebook.
hard disk failure of my notebook.
+

Revision as of 06:47, 18 January 2007

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 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.

1. 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)

2. 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"/>

3. 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.

4. Create OSWorkflow tables.

5. 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!

If you find any bugs, please send it to this list or to me directly.

Regards,

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox