根据jbpm3的最新代码,分析出jpdl3于jpdl2比较的可能的变化
1.添加了merge
<!ELEMENT merge (description?)>
<!ATTLIST merge name CDATA #REQUIRED>
merge对应于以前的decision,它们的关系就如同fork和join的关系
2.添加了node
<!ELEMENT node (description?,event?,transition+)>//为node指定event
可以为node指定event:
<!ELEMENT event (description?,action?)>//为event指定action
<!ATTLIST event type CDATA #REQUIRED> //event的type属性
<!ATTLIST action class CDATA #REQUIRED> //action的class属性,表示要执行的类
3.添加了task_node
<!ELEMENT task_node ( description?,task*,event*,transition+ ) >
task_node将为引擎用户产生任务,它有下面的一些属性
<!ATTLIST task_node name CDATA #REQUIRED> signal
<!ATTLIST task_node create-tasks (yes|no)>
<!ATTLIST task_node signal (last_wait|...)>
task_node是node的子类型,当然可以象node一样为它添加event等子element
<!ELEMENT task (description?,...)>
4.添加了interleave-start和interleave-end
<interleave-start name='startinterleaving'>
<transition name='b' to='b' />
<transition name='c' to='c' />
<transition name='d' to='d' />
</interleave-start>"
本文地址:http://com.8s8s.com/it/it32804.htm