JBPM Configuration of Liferay Portal

Source: Internet
Author: User
Tags tomcat jbpm

After several days of searching through the Liferay, the answers were found in the forums of the forum, hoping to help friends who are interested in deploying JPBM workflows in Liferay. 1. First download Liferay Portal Professional 4.2.1 (Bundled with Tomcat for JDK 5.0)

2, use its default Hsql database, that is, not to change its database configuration.

3. Download Liferay-portal-servicemix-4.2.1.war and Iferay-portal-jbpm-4.2.1.war
Http://www.liferay.com/web/guest/downloads

4, the download of these two packages are renamed Jbpm-web.war and Servicemix-web.war respectively

5. Copy Jbpm-web.war and Servicemix-web.war to Tomcat's WebApps directory

6. Rename the Hsqldb.create.jbpm.3.1.sql file in the Webapps\jbpm-web\web-inf\sql directory to jbpm.script and put it in the Tomcat bin directory.

7, run Tomcat Startup.bat

8, open http://localhost:8080/, and use test@liferay.com User login (password is test)

9, add the workflow portlet entry, select the definitions tag, and select the Add button.

10, enter the workflow definition in text area, such as:

1
2<?xml version= "1.0" encoding= "UTF-8"?>
3
4<process-definition xmlns= "urn:jbpm.org:jpdl-3.1" name= "Example process" >
5 <start-state name= "Start" >
6 <task>
7 <assignment class= "Com.liferay.jbpm.handler.IdentityAssignmentHandler" >
8 <companyId>liferay.com</companyId>
9 <type>user</type>
Ten <name>test@liferay.com</name>
</assignment>
<controller>
<variable name= "Text:color"/>
<variable name= "Text:size"/>
</controller>
</task>
<transition name= "to_t" to= "T"/>
18
</start-state>
20
<task-node name= "T" >
<task name= "T" >
<controller >
<variable name= "Text:color" access= "read"/>
<variable name= "Text:size" access= "read"/>
Num </controller>
<assignment class= "Com.liferay.jbpm.handler.IdentityAssignmentHandler" >
<companyId>liferay.com</companyId>
<type>user</type>
<name>test@liferay.com</name>
</assignment>
</task>
<transition name= "to_end" to= ' End '/>
</task-node>
<end-state name= "End" ></end-state>
36</process-definition>

11. Submit This example to generate a workflow.

12. In the Tasks view, select "Manage" to perform this tasks.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.