enhancement #I9FM3I chain 中增加一个指纹值
This commit is contained in:
parent
33197922d6
commit
bc86356078
|
@ -6,7 +6,9 @@ import com.yomahub.liteflow.core.FlowExecutor;
|
|||
import com.yomahub.liteflow.core.FlowExecutorHolder;
|
||||
import com.yomahub.liteflow.enums.NodeTypeEnum;
|
||||
import com.yomahub.liteflow.exception.ELParseException;
|
||||
import com.yomahub.liteflow.flow.FlowBus;
|
||||
import com.yomahub.liteflow.flow.LiteflowResponse;
|
||||
import com.yomahub.liteflow.flow.element.Chain;
|
||||
import com.yomahub.liteflow.property.LiteflowConfig;
|
||||
import com.yomahub.liteflow.test.BaseTest;
|
||||
import com.yomahub.liteflow.test.builder.cmp.*;
|
||||
|
@ -203,15 +205,17 @@ public class BuilderTest extends BaseTest {
|
|||
.setClazz(CCmp.class)
|
||||
.build();
|
||||
LiteFlowChainELBuilder.createChain().setChainName("chain1").setEL("THEN(a1,c2,a2,c1)").build();
|
||||
LiteflowResponse response = flowExecutor.execute2Resp("chain1");
|
||||
Assertions.assertTrue(response.isSuccess());
|
||||
Assertions.assertEquals("a1[组件A1]==>c2[组件C2]==>a2[组件A2]==>c1[组件C1]", response.getExecuteStepStr());
|
||||
|
||||
String sha256 = FlowBus.getChainMap().get("chain1").getChainSha256();
|
||||
|
||||
LiteFlowChainELBuilder.createChain().setChainId("chain1").setEL("THEN(a1,c2,a2,c1)").build();
|
||||
LiteflowResponse response2 = flowExecutor.execute2Resp("chain1");
|
||||
Assertions.assertTrue(response2.isSuccess());
|
||||
Assertions.assertEquals("a1[组件A1]==>c2[组件C2]==>a2[组件A2]==>c1[组件C1]", response2.getExecuteStepStr());
|
||||
String sha256Same = FlowBus.getChainMap().get("chain1").getChainSha256();
|
||||
|
||||
Assertions.assertEquals(sha256, sha256Same);
|
||||
|
||||
LiteFlowChainELBuilder.createChain().setChainId("chain1").setEL("THEN(a1,c2,a2)").build();
|
||||
String chain1Sha256 = FlowBus.getChainMap().get("chain1").getChainSha256();
|
||||
|
||||
Assertions.assertNotEquals(sha256, chain1Sha256);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue