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.