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'.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值