enhancement #I4ZPNQ 隐式调用流程建议增加返回reponse的接口

This commit is contained in:
bryan31 2022-04-26 23:14:40 +08:00
parent e60c87dec2
commit 2acec6c7e2
1 changed files with 5 additions and 0 deletions

View File

@ -283,6 +283,11 @@ public class FlowExecutor {
this.execute(chainId, param, slotClazz, slotIndex, true);
}
public <T extends Slot> LiteflowResponse<T> invoke2Resp(String chainId, Object param, Class<T> slotClazz,
Integer slotIndex){
return this.execute2Resp(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);