![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
activiti
vickyhwj
这个作者很懒,什么都没留下…
展开
-
flowable的DefaultDeploymentCache的优化
在纯内存的配置下,多线程压测发现cpu使用率不到100%,于是打印线程栈发现好多线程都block。进去看了一下DefaultDeploymentCache用的是LinkedHashMap,而且Collections.synchronizedMap同步包装一下,LinkedHashMap每次get的时候都会调整链表结构,所以他读的时候一定是相互排斥的,才能保证线程安全!优化一下,增加一层,类似于读写分离的做法然后cpu使用率达到100%了...原创 2022-01-13 10:15:26 · 485 阅读 · 0 评论 -
包容网关源码
else if (executionEntity.getId().equals(execution.getId()) && executionEntity.isActive()) { // Special case: the execution has reached the inc gw, but the operation hasn't been executed yet for that execution ...原创 2021-11-16 10:30:50 · 226 阅读 · 0 评论 -
cancelActivity的作用
cancelActivity为true,则interrupting为trueexecuteInterruptingBehavior会调用deleteChildExecutions(attachedRefScopeExecution, executionEntity, commandContext);把usertask删掉原创 2021-09-26 15:49:21 · 125 阅读 · 0 评论 -
flowable缓存与查询同步问题
runtimeService.createExecutionQuery().onlySubProcessExecutions().list()结果发现executions没有想要的结果,但是换成了executionDataManager.findInactiveExecutionsByActivityIdAndProcessInstanceId("subProcess","900224");就会有想要的结果,为啥呢?runtimeService.createExecutionQuery().原创 2021-07-08 11:27:21 · 625 阅读 · 0 评论 -
setVariable和setVariableLocal区别
delegateTask.setVariableLocal是set进当前execution里面原创 2021-06-10 11:10:26 · 556 阅读 · 0 评论 -
Flowable 跳跃表达式
@Test public void startProcessByKey(){ Map<String,Object> afT=new HashMap<>(); Map<String,Object> afP=new HashMap<>(); afP.put("_FLOWABLE_SKIP_EXPRESSION_ENABLED",true); String key="jump"; ...原创 2021-06-08 17:57:16 · 1112 阅读 · 0 评论 -
activiti的callactivity
原创 2021-05-28 11:27:22 · 852 阅读 · 0 评论 -
activiti并行汇聚并发安全原理
complete一个分支任务后巧用乐观锁控制并发安全原创 2021-04-16 21:58:54 · 269 阅读 · 0 评论 -
activiti替换json
发布时,select * from act_re_model根据modelId找到model,根据EDITOR_SOURCE_EXTRA_VALUE_ID_,去act_ge_bytearray找到对应的json,然后部署后,update act_re_model set DEPLOYMENT_ID_=新的部署id;如果修改流程,替换name_='source'的那个字段,然后重新发布,例如:update act_ge_bytearray t1 join act_ge_bytearray t2 o原创 2021-03-30 12:54:23 · 300 阅读 · 0 评论 -
Activiti自增id真的会主键重复吗?
DbIdGenerator的事务传播级别是require_NEW,他是在synchronized块里面已经提交了事务,在单个应用实例上是不可能出现并发问题。同样,在多应用实例上也不应会有并发问题把,他是使用数据库乐观锁的方式控制并发...原创 2020-06-29 14:21:23 · 2412 阅读 · 0 评论