mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement #I4TGGV 子流程中的finally节点没有执行
This commit is contained in:
@@ -55,4 +55,12 @@ public class PreAndFinallySpringTest extends BaseTest {
|
||||
Assert.assertFalse(response.isSuccess());
|
||||
Assert.assertTrue(response.getContextBean().getData("hasEx"));
|
||||
}
|
||||
|
||||
//测试嵌套结构pre和finally是否在各自的chain里打出
|
||||
@Test
|
||||
public void testPreAndFinally5() throws Exception{
|
||||
LiteflowResponse<DefaultContext> response = flowExecutor.execute2Resp("chain5", "arg");
|
||||
Assert.assertTrue(response.isSuccess());
|
||||
Assert.assertEquals("p1==>p2==>p1==>p2==>a==>b==>c==>f1==>f2==>f1", response.getExecuteStepStrWithoutTime());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,10 @@
|
||||
<then value="a,d,c"/>
|
||||
<finally value="f3"/>
|
||||
</chain>
|
||||
|
||||
<chain name="chain5">
|
||||
<pre value="p1,p2"/>
|
||||
<then value="chain1"/>
|
||||
<finally value="f1"/>
|
||||
</chain>
|
||||
</flow>
|
||||
Reference in New Issue
Block a user