jbpm4.4 Environment Construction

Source: Internet
Author: User
Tags install window jbpm

1, the use of related development tools software.

1) Eclipse IDE for Java EE Developers (Eclipse 4.2)

2) jBPM4.4

3) MySQL5.6

2. Configure the GPD plug-in for the design process in eclipse. (for drawing custom processes)

1) GPD Plugin directory: Jbpm-4.4\install\src\gpd\jbpm-gpd-site.zip

2) Install plugin: Eclipse menu Help-->install New softwore ... Open the Install window, and in the Install window, click Add ... Open the Add Repository window; In the Add Repository window, click Archive ... Select Jbpm-gpd-site.zip in the directory where the plugin is located.

3) When the installation is complete, you will be prompted to restart Eclipse and select Restart.

3, integration with SSH2.

want to let JBPM4.4 and SSH2 integration, first of all must first let SSH2 integration good, that is necessary. On the integration of SSH2, I do not have a lot of money in this, online information a lot. before integration, it is necessary to first have a perceptual understanding of jbpm. JBPM is required to support database tables when it comes to managing processes, because the underlying logic is so complex. The default download-down configuration is using the in-memory database. In practical applications, we need to connect to our database. people who have studied jbpm know that jbpm in the process of operation, everything is based on processengine objects, so the idea of integration is very simple, as long as we can let spring create processengine, integration, even if it is a big step, Let's add the following code to the spring configuration file (applicationcontext.xml): [HTML]View Plaincopyprint?
  1. <!--configuration Processengine--
  2. <Bean id= "springhelper" class="Org.jbpm.pvm.internal.processengine.SpringHelper " >
  3. < name= "jbpmcfg" value="Jbpm.cfg.xml"></ Property >
  4. </Bean>
  5. <Bean id="Processengine" factory-bean="Springhelper" factory-method=" Createprocessengine " />
    Here you create the Processengine object, where you use the jbpm.cfg.xml, which reads as follows:
[HTML]View Plaincopyprint?
  1. <? XML version= "1.0" encoding="UTF-8"?>
  2. <jbpm-configuration>
  3. <import resource="Jbpm.default.cfg.xml" />
  4. <import resource="Jbpm.businesscalendar.cfg.xml" />
  5. <!--integration with spring requires importing Jbpm.tx.spring.cfg.xml files --
  6. <import resource="Jbpm.tx.spring.cfg.xml" />
  7. <import resource="Jbpm.jpdl.cfg.xml" />
  8. <import resource="Jbpm.bpmn.cfg.xml" />
  9. <import resource="Jbpm.identity.cfg.xml" />
  10. </jbpm-configuration>

See here, perhaps you will ask again: Spring-jbpm4.cfg.xml and so many files, where are these files? These files, you don't have to worry, they are all in the Jbpm.jar file, this is not our tube. are you done here? Not yet! Previously said, JBPM to database table support to work, JBPM is also using Hibernate operation database, it is unavoidable to configure Hibernate table and entity mapping file, as follows:
[HTML]View Plaincopyprint?
  1. <! DOCTYPE hibernate-configuration Public
  2. "-//hibernate/hibernate Configuration DTD 3.0//en"
  3. "Http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  4. <hibernate-configuration>
  5. <session-factory>
  6. <!--database Information --
  7. <property name="dialect">org.hibernate.dialect.mysql5innodbdialect</ Property>
  8. < name="Connection.url">jdbc:mysql:///itcastoa_20120216</Property >
  9. <property name="Connection.driver_class">com.mysql.jdbc.driver</ Property>
  10. < name="Connection.username">root </Property>
  11. < name="Connection.password">root </Property>
  12. <!--Other configurations --
  13. < name="Show_sql">true </Property>
  14. < name="Hbm2ddl.auto">update </Property>
  15. <!--import JBPM4.4 mapping files--
  16. <mapping resource="Jbpm.repository.hbm.xml" />
  17. <mapping resource="Jbpm.execution.hbm.xml" />
  18. <mapping resource="Jbpm.history.hbm.xml" />
  19. <mapping resource="Jbpm.task.hbm.xml" />
  20. <mapping resource="Jbpm.identity.hbm.xml" />
  21. <!--import your own mapping configuration (fill in your case) -
  22. <mapping resource="Cn/itcast/oa/domain/user.hbm.xml" />
  23. <mapping resource="Cn/itcast/oa/domain/department.hbm.xml" />
  24. <mapping resource="Cn/itcast/oa/domain/role.hbm.xml" />
  25. </session-factory>
  26. </hibernate-configuration>

See here, and perhaps you will ask, where are these *.hbm.xml files? Rest assured, these, again in the Jbpm.jar, we just load on the line.
The next step is to add the jar package, if you have integrated the SSH2, then you just need to add
Jbpm.jar, Juel-api.jar, Juel-engine.jar, Juel-impl.jar, Mail.jar
All this work is done. Your JBPM+SSH2 environment is complete.

jbpm4.4 Environment Construction

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.