|
@@ -2,11 +2,8 @@ package com.yomahub.liteflow.test.subflow.cmp2;
|
|
|
|
|
|
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
|
|
import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
|
|
import com.yomahub.liteflow.annotation.LiteflowMethod;
|
|
import com.yomahub.liteflow.annotation.LiteflowMethod;
|
|
-import com.yomahub.liteflow.core.FlowExecutor;
|
|
|
|
import com.yomahub.liteflow.core.NodeComponent;
|
|
import com.yomahub.liteflow.core.NodeComponent;
|
|
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
|
|
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
|
|
-import com.yomahub.liteflow.slot.DefaultContext;
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT;
|
|
import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT;
|
|
@@ -16,9 +13,6 @@ import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RU
|
|
@LiteflowCmpDefine
|
|
@LiteflowCmpDefine
|
|
public class GCmp{
|
|
public class GCmp{
|
|
|
|
|
|
- @Autowired
|
|
|
|
- private FlowExecutor flowExecutor;
|
|
|
|
-
|
|
|
|
@LiteflowMethod(LiteFlowMethodEnum.PROCESS)
|
|
@LiteflowMethod(LiteFlowMethodEnum.PROCESS)
|
|
public void process(NodeComponent bindCmp) throws Exception {
|
|
public void process(NodeComponent bindCmp) throws Exception {
|
|
|
|
|
|
@@ -26,6 +20,6 @@ public class GCmp{
|
|
|
|
|
|
System.out.println("Gcmp executed!");
|
|
System.out.println("Gcmp executed!");
|
|
|
|
|
|
- flowExecutor.invoke("chain4", "it's implicit subflow.", bindCmp.getSlotIndex());
|
|
|
|
|
|
+ bindCmp.invoke("chain4", "it's implicit subflow.");
|
|
}
|
|
}
|
|
}
|
|
}
|