-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #I4HZYN 使用When操作同一个Node时,会造成Tag标签的线程不安全
- Loading branch information
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/tag/cmp/B1Cmp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* <p>Title: liteflow</p> | ||
* <p>Description: 轻量级的组件式流程框架</p> | ||
* @author Bryan.Zhang | ||
* @email weenyc31@163.com | ||
* @Date 2020/4/1 | ||
*/ | ||
package com.yomahub.liteflow.test.tag.cmp; | ||
|
||
import cn.hutool.core.collection.ConcurrentHashSet; | ||
import com.yomahub.liteflow.annotation.LiteflowComponent; | ||
import com.yomahub.liteflow.core.NodeComponent; | ||
import com.yomahub.liteflow.entity.data.Slot; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
@LiteflowComponent("b1") | ||
public class B1Cmp extends NodeComponent { | ||
|
||
@Override | ||
public void process() { | ||
Slot slot = this.getSlot(); | ||
slot.setData("test",new ConcurrentHashSet<String>()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters