JBPM, full name is Java Business Process Management, is a lightweight workflow management system based on J2EE. JBPM is a public source code project, which is used to follow apache license. JBPM
2004
year
10
month
18
day
2.0 version is released, and JBoss has been added on the same day, which has become an integral part of the JBoss Enterprise Middleware platform, and its name is also changed to JBoss JBPM. As JBPM joins JBoss organization, JBPM will also enter a new development era, and its prospect is very bright.
The biggest feature of JBPM is that its business logic definition does not use some current specifications, such as WFMC's XPDL, BPML, EBXML, BPEL4WS, etc., but use its own JBoss JBPM Process Definition Language (JPDL). JPDL believes that a business process can be seen as an UML state diagram. JPDL is detailed in detail each part of this state diagram, such as the initial, end state, and the like.
Another feature of JBPM is that it uses hibernate to manage its database. Hibernate is the best data persistence solution in the Java field. By Hibernate, JBPM separates the management functions of the data, focusing on the processing of business logic.
General processes using JBPM development workflows are as follows:
1) The operation of JBPM requires the support of the database, so the database used is selected when designing the system. JBPM is supported as long as it is a database supported by hibernate. The initialization of the database can be done automatically by JBPM, or the SQL statement can be generated through the ANT generate.ddl task, and the required table is created outside the JBPM.
2) Use JPDL to define a workflow to generate a processdinination.xml file. You can use the GUI tool GPDL, but only JBPM1.0 is currently supported, and there are many bugs. XML DTD definition files are in the JBPM Download Pack.
3) ANT CREATE.PDE Generates the working directory of the PDE package. Place the ProcessDinination.xml file and other needs in the specified directory, use ant build.precess.archives to generate a PDE package. The format of the PDE package is in JAR.
4) Change the relevant properties of the PDE working directory /src/config/jbpm.properties, mainly to set the relevant database connection information. Note To put the database's JDBC driver in the lib directory of the PDE work directory.
5) Ant deploy.process.archives deployed the PDE you just generated to the database. In fact, insert some related data to the database.
6) Develop a corresponding workflow using the JBPM API function.