mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-24 02:38:09 +08:00
测试
This commit is contained in:
@@ -13,6 +13,7 @@ import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.ReUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.yomahub.liteflow.entity.flow.Node;
|
||||
import com.yomahub.liteflow.enums.FlowParserTypeEnum;
|
||||
import com.yomahub.liteflow.exception.*;
|
||||
import com.yomahub.liteflow.parser.*;
|
||||
@@ -266,6 +267,11 @@ public class FlowExecutor {
|
||||
this.execute(chainId, param, slotClazz, slotIndex, true);
|
||||
}
|
||||
|
||||
public <T extends Slot> void invoke(String nodeId, Integer slotIndex) throws Exception {
|
||||
Node node = FlowBus.getNode(nodeId);
|
||||
node.execute(slotIndex);
|
||||
}
|
||||
|
||||
public DefaultSlot execute(String chainId) throws Exception {
|
||||
return this.execute(chainId, null, DefaultSlot.class, null, false);
|
||||
}
|
||||
|
||||
@@ -127,6 +127,15 @@ public abstract class AbsSlot implements Slot {
|
||||
}
|
||||
}
|
||||
|
||||
public <T> Queue<T> getPrivateDeliveryQueue(String nodeId){
|
||||
String privateDKey = PRIVATE_DELIVERY_PREFIX + nodeId;
|
||||
if(dataMap.containsKey(privateDKey)){
|
||||
return (Queue<T>) dataMap.get(privateDKey);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public <T> T getPrivateDeliveryData(String nodeId){
|
||||
String privateDKey = PRIVATE_DELIVERY_PREFIX + nodeId;
|
||||
if(dataMap.containsKey(privateDKey)){
|
||||
|
||||
Reference in New Issue
Block a user