public class LoopNode extends com.agentsflex.core.chain.node.BaseNode
| 限定符和类型 | 字段和说明 |
|---|---|
private com.agentsflex.core.chain.Chain |
loopChain |
private com.agentsflex.core.chain.Parameter |
loopVar |
| 构造器和说明 |
|---|
LoopNode() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,Object> |
execute(com.agentsflex.core.chain.Chain chain) |
private void |
executeLoopChain(int index,
Object loopItem,
Map<String,Object> parentMap,
Map<String,Object> executeResult) |
private void |
fillResult(Map<String,Object> executeResult,
com.agentsflex.core.chain.Chain loopChain)
把子流程执行的结果填充到主流程的输出参数中
|
com.agentsflex.core.chain.Chain |
getLoopChain() |
com.agentsflex.core.chain.Parameter |
getLoopVar() |
private boolean |
isNumeric(String string)
判断字符串是否是数字
|
void |
setLoopChain(com.agentsflex.core.chain.Chain loopChain) |
void |
setLoopVar(com.agentsflex.core.chain.Parameter loopVar) |
addInputParameter, addOutputDef, addOutputDefs, getOutputDefs, getParameters, setOutputDefs, setParametersaddInwardEdge, addOutwardEdge, getCondition, getDescription, getId, getInwardEdges, getLoopBreakCondition, getLoopIntervalMs, getMaxLoopCount, getMemory, getName, getNodeStatus, getOutwardEdges, isAsync, isLoopEnable, setAsync, setCondition, setDescription, setId, setInwardEdges, setLoopBreakCondition, setLoopEnable, setLoopIntervalMs, setMaxLoopCount, setMemory, setName, setNodeStatus, setNodeStatusFinished, setOutwardEdgesprivate com.agentsflex.core.chain.Parameter loopVar
private com.agentsflex.core.chain.Chain loopChain
public LoopNode()
public com.agentsflex.core.chain.Parameter getLoopVar()
public void setLoopVar(com.agentsflex.core.chain.Parameter loopVar)
public com.agentsflex.core.chain.Chain getLoopChain()
public void setLoopChain(com.agentsflex.core.chain.Chain loopChain)
protected Map<String,Object> execute(com.agentsflex.core.chain.Chain chain)
execute 在类中 com.agentsflex.core.chain.ChainNodeprivate void executeLoopChain(int index, Object loopItem, Map<String,Object> parentMap, Map<String,Object> executeResult)
private boolean isNumeric(String string)
string - 需要判断的字符串private void fillResult(Map<String,Object> executeResult, com.agentsflex.core.chain.Chain loopChain)
executeResult - 主流程的输出参数loopChain - 子流程的Copyright © 2025. All rights reserved.