The basic steps for the JBPM workflow deployment are: first pack the workflow definition file (ProcessDifInition.xml) and related resource files into a PDE file, and then deploy the generated PDE package to the JBPM database. The format of the PDE file is the JAR file format, which can be opened with WinRar, Winzip.
The ANT task is defined in the JBPM release package to complete this deployment task, and the specific steps are as follows:
(1) Modify the build.properties under the JBPM root directory, jbpm.home indicates the directory where jbpm is located; ant.home indicates the directory where Ant is located; JBoss.Home indicates the directory where JBoss is located; JBPM.pde indicates a work directory that generates a PDE file.
(2) Run the command in the JBPM root directory: ant create.pde, generate a PDE work directory;
Work catalog hierarchical: jbpm.pde ----------------
---- The library file required for LIB, including JDBC drivers.
---- SRC
----- Config JBPM.Properties and Log4j.properties
----- Java Java file
----- Process workflow definition file and related resource files
----- Test test code
----- Target
----- Classes
----- PDE generated by PDE
----- Test-Classes
----- Test-Reports
(3) Modify JBPM.Properties, set the specific database connection information, put the database JDBC driver in the lib directory;
(4) Place the file required to generate the PDE in the above-described directory;
(5) Modify the build.xml file under the JBPM.PDE directory, mainly to modify the build.process.archives task definition, specify the workflow definition file name and the corresponding resource file.
(6) Run the Ant Deploy.Process.archives command in the jbpm.pde directory; modify the workflow definition file, you must run Ant Clean and then run Ant Deploy.Process.archives.
(7) If you want to generate a PDE file separately, you can run the Ant Build.Process.archives command.