mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
test #I7SVZF 添加新的测试用例,用于测试不同名称占位符是否有效
This commit is contained in:
@@ -50,4 +50,11 @@ public class AbstractChainJsonELDeclMultiSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,4 +52,11 @@ public class AbstractChainXmlELDeclMultiSpringbootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,4 +51,11 @@ public class AbstractChainYmlELDeclMultiSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,15 @@
|
|||||||
"extends": "base",
|
"extends": "base",
|
||||||
"abstract": true,
|
"abstract": true,
|
||||||
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "base3",
|
||||||
|
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "implD",
|
||||||
|
"extends": "base3",
|
||||||
|
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,16 @@
|
|||||||
{0}=THEN(a,b,{3});
|
{0}=THEN(a,b,{3});
|
||||||
{1}=SWITCH(f).to({4},k);
|
{1}=SWITCH(f).to({4},k);
|
||||||
</chain>
|
</chain>
|
||||||
|
<chain name="base3">
|
||||||
|
THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
<chain extends="base3" id="implD">
|
||||||
|
{_pre} = THEN(a,b);
|
||||||
|
{mainChain}=THEN(a,b);
|
||||||
|
{subChain1}=THEN(j,k);
|
||||||
|
{subChain2}=IF(c, d, e);
|
||||||
|
{end_chain}=SWITCH(f).to(j,k);
|
||||||
|
</chain>
|
||||||
|
|
||||||
</flow>
|
</flow>
|
||||||
@@ -16,3 +16,8 @@ flow:
|
|||||||
extends: base
|
extends: base
|
||||||
abstract: true
|
abstract: true
|
||||||
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
- id: base3
|
||||||
|
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
|
||||||
|
- id: implD
|
||||||
|
extends: base3
|
||||||
|
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
|
|||||||
@@ -50,4 +50,11 @@ public class AbstractChainJsonELDeclSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,4 +52,11 @@ public class AbstractChainXmlELDeclSpringbootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,4 +51,11 @@ public class AbstractChainYmlELDeclSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,15 @@
|
|||||||
"extends": "base",
|
"extends": "base",
|
||||||
"abstract": true,
|
"abstract": true,
|
||||||
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "base3",
|
||||||
|
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "implD",
|
||||||
|
"extends": "base3",
|
||||||
|
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,16 @@
|
|||||||
{0}=THEN(a,b,{3});
|
{0}=THEN(a,b,{3});
|
||||||
{1}=SWITCH(f).to({4},k);
|
{1}=SWITCH(f).to({4},k);
|
||||||
</chain>
|
</chain>
|
||||||
|
<chain name="base3">
|
||||||
|
THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
<chain extends="base3" id="implD">
|
||||||
|
{_pre} = THEN(a,b);
|
||||||
|
{mainChain}=THEN(a,b);
|
||||||
|
{subChain1}=THEN(j,k);
|
||||||
|
{subChain2}=IF(c, d, e);
|
||||||
|
{end_chain}=SWITCH(f).to(j,k);
|
||||||
|
</chain>
|
||||||
|
|
||||||
</flow>
|
</flow>
|
||||||
@@ -16,3 +16,8 @@ flow:
|
|||||||
extends: base
|
extends: base
|
||||||
abstract: true
|
abstract: true
|
||||||
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
- id: base3
|
||||||
|
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
|
||||||
|
- id: implD
|
||||||
|
extends: base3
|
||||||
|
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
|
|||||||
@@ -48,4 +48,11 @@ public class AbstractChainJsonELTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,4 +47,10 @@ public class AbstractChainXmlELTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,4 +46,10 @@ public class AbstractChainYmlELTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,15 @@
|
|||||||
"extends": "base",
|
"extends": "base",
|
||||||
"abstract": true,
|
"abstract": true,
|
||||||
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "base3",
|
||||||
|
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "implD",
|
||||||
|
"extends": "base3",
|
||||||
|
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,16 @@
|
|||||||
{0}=THEN(a,b,{3});
|
{0}=THEN(a,b,{3});
|
||||||
{1}=SWITCH(f).to({4},k);
|
{1}=SWITCH(f).to({4},k);
|
||||||
</chain>
|
</chain>
|
||||||
|
<chain name="base3">
|
||||||
|
THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
<chain extends="base3" id="implD">
|
||||||
|
{_pre} = THEN(a,b);
|
||||||
|
{mainChain}=THEN(a,b);
|
||||||
|
{subChain1}=THEN(j,k);
|
||||||
|
{subChain2}=IF(c, d, e);
|
||||||
|
{end_chain}=SWITCH(f).to(j,k);
|
||||||
|
</chain>
|
||||||
|
|
||||||
</flow>
|
</flow>
|
||||||
@@ -34,3 +34,9 @@ flow:
|
|||||||
extends: base
|
extends: base
|
||||||
abstract: true
|
abstract: true
|
||||||
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
- id: base3
|
||||||
|
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
|
||||||
|
- id: implD
|
||||||
|
extends: base3
|
||||||
|
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
|
|
||||||
|
|||||||
@@ -41,4 +41,11 @@ public class AbstractChainJsonELSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,4 +46,11 @@ public class AbstractChainXMLELSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,4 +45,11 @@ public class AbstractChainYmlELSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,15 @@
|
|||||||
"extends": "base",
|
"extends": "base",
|
||||||
"abstract": true,
|
"abstract": true,
|
||||||
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "base3",
|
||||||
|
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "implD",
|
||||||
|
"extends": "base3",
|
||||||
|
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,17 @@
|
|||||||
{0}=THEN(a,b,{3});
|
{0}=THEN(a,b,{3});
|
||||||
{1}=SWITCH(f).to({4},k);
|
{1}=SWITCH(f).to({4},k);
|
||||||
</chain>
|
</chain>
|
||||||
|
<chain name="base3">
|
||||||
|
THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
<chain extends="base3" id="implD">
|
||||||
|
{_pre} = THEN(a,b);
|
||||||
|
{mainChain}=THEN(a,b);
|
||||||
|
{subChain1}=THEN(j,k);
|
||||||
|
{subChain2}=IF(c, d, e);
|
||||||
|
{end_chain}=SWITCH(f).to(j,k);
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
|
||||||
</flow>
|
</flow>
|
||||||
@@ -16,3 +16,9 @@ flow:
|
|||||||
extends: base
|
extends: base
|
||||||
abstract: true
|
abstract: true
|
||||||
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
- id: base3
|
||||||
|
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
|
||||||
|
- id: implD
|
||||||
|
extends: base3
|
||||||
|
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class AbstractChainJsonELSpringBootTest extends BaseTest {
|
|||||||
public void test4() throws Exception {
|
public void test4() throws Exception {
|
||||||
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
Assertions.assertTrue(response.isSuccess());
|
Assertions.assertTrue(response.isSuccess());
|
||||||
Assertions.assertEquals("a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,4 +51,11 @@ public class AbstractChainYmlELSpringBootTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,15 @@
|
|||||||
"id": "base2",
|
"id": "base2",
|
||||||
"extends": "base",
|
"extends": "base",
|
||||||
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "base3",
|
||||||
|
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "implD",
|
||||||
|
"extends": "base3",
|
||||||
|
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,3 +14,8 @@ flow:
|
|||||||
- id: base2
|
- id: base2
|
||||||
extends: base
|
extends: base
|
||||||
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
- id: base3
|
||||||
|
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
|
||||||
|
- id: implD
|
||||||
|
extends: base3
|
||||||
|
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
|
|||||||
@@ -42,4 +42,11 @@ public class AbstractChainJsonELSpringTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,4 +43,11 @@ public class AbstractChainXMLELSpringTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,4 +43,11 @@ public class AbstractChainYMLELSpringTest extends BaseTest {
|
|||||||
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
Assertions.assertEquals("a==>b==>a==>b==>a==>b==>f==>a==>b", response.getExecuteStepStrWithoutTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test4() throws Exception {
|
||||||
|
LiteflowResponse response = flowExecutor.execute2Resp("implD", "arg");
|
||||||
|
Assertions.assertTrue(response.isSuccess());
|
||||||
|
Assertions.assertEquals("a==>b==>a==>b==>j==>k==>c==>d==>f==>j", response.getExecuteStepStrWithoutTime());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,15 @@
|
|||||||
"extends": "base",
|
"extends": "base",
|
||||||
"abstract": true,
|
"abstract": true,
|
||||||
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
"value": "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "base3",
|
||||||
|
"value": "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain});"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "implD",
|
||||||
|
"extends": "base3",
|
||||||
|
"value": "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,5 +24,17 @@
|
|||||||
{1}=SWITCH(f).to({4},k);
|
{1}=SWITCH(f).to({4},k);
|
||||||
</chain>
|
</chain>
|
||||||
|
|
||||||
|
<chain name="base3">
|
||||||
|
THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
<chain extends="base3" id="implD">
|
||||||
|
{_pre} = THEN(a,b);
|
||||||
|
{mainChain}=THEN(a,b);
|
||||||
|
{subChain1}=THEN(j,k);
|
||||||
|
{subChain2}=IF(c, d, e);
|
||||||
|
{end_chain}=SWITCH(f).to(j,k);
|
||||||
|
</chain>
|
||||||
|
|
||||||
|
|
||||||
</flow>
|
</flow>
|
||||||
@@ -16,3 +16,8 @@ flow:
|
|||||||
extends: base
|
extends: base
|
||||||
abstract: true
|
abstract: true
|
||||||
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
value: "{0}=THEN(a,b,{3});\n {1}=SWITCH(f).to({4},k);"
|
||||||
|
- id: base3
|
||||||
|
value: "THEN({_pre},{mainChain}, {subChain1},{subChain2},{end_chain})"
|
||||||
|
- id: implD
|
||||||
|
extends: base3
|
||||||
|
value: "{_pre} = THEN(a,b);\n {mainChain}=THEN(a,b);\n{subChain1}=THEN(j,k);\n{subChain2}=IF(c, d, e);\n{end_chain}=SWITCH(f).to(j,k);"
|
||||||
|
|||||||
Reference in New Issue
Block a user