activiti细节

1,加载流程定义文件

@Deployment(resources={"chapter5/testSimpleMail.bpmn20.xml"})

2.Timer Start Event

不用手动去触发流程,会根据时间定时器来自动触发流程。

when a new version of a process with a start timer event is deployed, the job corresponding with the previous timer will be removed. The reasoning is that normally it is not wanted to keep automatically starting new process instances of this old version of the process.

当新的流程部署时,先前的job会被删掉。原因是担心会用老的流程定义来启动新的流程实例。

3.Timer Boundary Event

cancelActivity属性:true:当timer触发时,当前的activity被中断;false:不会被中断,继续执行下一步

当执行循环定时器时,虽然cancelActivity=true,但是该acitivity还是会持续生成

你可能感兴趣的:(activiti细节)