工作流异步执行期原理及时序图
2020-06-24 10:04:23 0 举报
Activiti工作流异步执行器原理及时序图
作者其他创作
大纲/内容
通过DefaultJobManager.execute来执行Job
向命令上下文注册上下文关闭事件AsyncJobAddedNotification
ExecuteAsyncRunnable
AsyncExecutor.run()
JobManager.execute()
异步执行器执行线程ExecuteAsyncRunnable
CommandContext.closed
triggerExecutorIfNeeded
AcquireTimerJobRuuable
TaskExecutor.execute()
hintAsyncExecutor
v
1.将TimerJobEntity转换JobEntity
1开启事务2执行匿名命令调用AsyncExecutor.run()
moveTimerJobToExecutableJob
AcquireTimerJobsCmd
execute
AcquireAysyncJobsDueRunnable
通过ExecuteAsyncJobCmd执行Job
startTimerAcquistionThread
AcquireAsyncJobsDueRunnable.run
DefaultAsyncJobExecutor
AcquiredTimeJobEntities
SpringAsyncExecutor
ExecuteAsyncJobCmd
DefaultJobManager
获取TimerHobEntity集合
AsyncJobAddedNotification
start()

收藏
0 条评论
下一页