摘要
针对OA系统中复杂的业务流程和流程流转过程中人员及角色的复杂关系,采用了Activiti工作流框架,通过对框架中的身份信息数据表进行重构,并结合面向切面的SpringAOP及非关系型数据库Redis,可以同时将流程任务的执行人分配给单人、人员列表、角色。在用户发起流程和处理流程时,使用异步的处理方式,先行向Redis写入任务列表中有变化的人员列表,再使用定时任务,每隔1 s从Redis的人员列表中查询其任务列表并存入Redis。通过请求及响应测试表明,人员的待办和已办任务列表查看时间可以降低至45 ms以内。
As the complicated business processes and relations of persons and roles in OA system,Activiti workflow is researched in the article.By restructuring of identity database tables and using SpringAOP and Redis,the tasks of processes can beassigned to single person,list of persons and roles.When users start a process and execute their tasks,asynchronous ways of handling are used.At first the person list whose tasks have changed is written into Redis.Then the scheduled task is used to query person list and write it into Redis every 1s.According to the test of request and response time,the duration of displaying the to do task list and the finished task list canbe decreased below 45ms.
作者
杨光
YANG Guang(Department of Information Development,Xi’an Qing’an Aviation Electronics Co.,Ltd.,Xi’an 710077,China)
出处
《电子设计工程》
2021年第11期65-69,共5页
Electronic Design Engineering