1 / 13
文档名称:

JBPM源码分析.doc

格式:doc   大小:165KB   页数:13页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

JBPM源码分析.doc

上传人:mh900965 2017/12/14 文件大小:165 KB

下载得到文件列表

JBPM源码分析.doc

相关文档

文档介绍

文档介绍:,是用于ant命令吧?
,,ByteArray类中共有三个属性,对应hmb文件中的相同name的属性,其中byteBlocks对应list属性中的byteBlocks,如下所示:
<list name="byteBlocks"
table="JBPM_BYTEBLOCK"
cascade="all">
<key column="PROCESSFILE_" foreign-key="FK_BYTEBLOCK_FILE" />
<list-index column="INDEX_" />
<element type="binary" length="1024" column="BYTES_" />
</list>
这里用List是因为List维持集合内元素顺序的持久化。list-index表明INDEX_是 key值,查看表JBPM_BYTEBLOCK可知PROCESSFILE_ 和INDEX_是复合主 键,而且是由hibernate自己维护INDEX_的指。byteBlocks是一 个List,它里面 的每一个元素在保存时就保存在element元素BYTES_字段中。
包中另外一个类ByteBlockChopper用于对字节数组进行分块和合并, ;这个包的用途如下:
ByteArray is a persistable array of bytes. While there is no generic way of storing blobs
that is supported by many databases, all databases are able to handle small chunks
of bytes properly. It is the responsibility of this class to chop the large byte
array into small chunks of 1K (bine the chunks again in the reverse way).
Hibernate will persist the list of byte-chunks in the database。也就是实现不同数据库的兼容。ByteArray is used in process variableInstances and in the file module (that stores the
non-parsed process archive files).
, BusinessCalendar用户获取属性文件并且对假期和工作时间进行相关的操作,如查询节假日等;类Day和Holiday用于解析属性文件中工作日和假期的并提供一些操作;Duration类是一个时间长度类,维护了很多时间长度如属性文件中最后四行代表的时间长度的毫秒表示值;DayPart用于解析9:00-12:00这样的字符串并且用于判断给定的时间是否在此DayPart对象的时间内等操作;这个包中有很多关于时间的操作,建议大家有空学学;这个包里面的数据没有持久化。
,mand接口,mand都继承了此接口(另外,.)。mand封装了Action对象的execute操作,mand封装了Node对象的execute操作,mand封装了Token的signal操作,mand封装了TaskInstance的end操作;此包对应数据库中的JBPM_MESSAGE表,由于在配置文件中使用了discriminator-value属性,这几个命令对应同一张表,但是使用CLASS_字段进行区别标示;
CommandExecutorThread是一个线程类,mand。

。这是一个message服务提供类,:
<service name="message" factory="" />
里面有两种实现方式,一种是Jbpm自己实现的数据库方式,另一种是JMS方式,类