`
cuilji
  • 浏览: 66835 次
  • 性别: Icon_minigender_1
  • 来自: 本溪
社区版块
存档分类
最新评论

jBPM学习2

阅读更多
一、安装Eclipse插件:Graphical Process Designer(GPD),该插件已经包含在软件包中${jbpm.home}/install/src/gpd/jbpm-gpd-site.zip
1. Help --> Install New Software...
2.Click Add...
3.In dialog Add Site dialog, click Archive...
4.Navigate to install/src/gpd/jbpm-gpd-site.zip and click 'Open'
5.Clicking OK in the Add Site dialog will bring you back to the dialog 'Install'
6.Select the jPDL 4 GPD Update Site that has appeared
7.Click Next... and then Finish
8.Approve the license
9.Restart eclipse when that is asked

二、为Eclipse配置jBPM Runtime
1.Click Window --> Preferences
2.Select JBoss jBPM --> jBPM 4 --> Runtime Locations
3.Click Add...
4.In the Add Location dialog, enter a name like e.g. jbpm-4.0 and then click Search...
5.In the Browse For Folder dialog, select your jbpm home directory and click OK
6.Click OK in the Add Location dialog

三、为Eclipse添加用户库jBPM
1.Click Window --> Preferences
2.Select Java --> Build Path --> User Libraries
3.Click New...
4.Type name jBPM Libraries
5.Click Add JARs...
6.Navigate to the 'lib' folder of your jBPM installation
7.Select all jar files and click Open
8.Select the jBPM Libraries entry
9.Click Add JARs... again
10.Select the jbpm.jar file in the root of your jBPM installation
11.Click Open
12.Select entry Source attachment under jbpm.jar
//下列步骤是附加源码,不是必须的。
Click Edit
In dialog Source Attachment Configuration, click External Folder...
Navigate to the src folder in your jBPM installation
Click Choose
Click OK twice to close all the open dialogs
四、为了便于手工编辑XML的流程文件,为Eclispe添加schema文件
1.Click Window --> Preferences
2.Select XML --> XML Catalog
3.Click 'Add...'
4.The 'Add XML Catalog Entry' dialog opens
5.Click the button with the map-icon next to location and select 'File System...'
6.In the dialog that opens, select file jpdl-4.0.xsd in the src directory of the jBPM installation root.
7.Click 'Open' and close all the dialogs
五、导入示例项目
1.Select File --> Import...
2.Select General --> Existing Projects into Workspace
3.Click Next
4.Click Browse... to select a root directory
5.Navigate to the jBPM root installation directory
6.Click OK
7.The examples project is automatically found and selected
8.Click Finish
至此,所有例子都可以作为测试运行,右击所选项目:'Run As' --> 'JUnit Test'.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics