mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-30 04:56:35 +08:00
优化了流程的进行
This commit is contained in:
@@ -43,15 +43,15 @@ namespace Serein.NodeFlow.Model
|
||||
try
|
||||
{
|
||||
var isPass = SerinConditionParser.To(result, Expression);
|
||||
FlowState = isPass ? FlowStateType.Succeed : FlowStateType.Fail;
|
||||
NextOrientation = isPass ? ConnectionType.IsSucceed : ConnectionType.IsFail;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FlowState = FlowStateType.Error;
|
||||
NextOrientation = ConnectionType.IsError;
|
||||
RuningException = ex;
|
||||
}
|
||||
|
||||
Console.WriteLine($"{result} {Expression} -> " + FlowState);
|
||||
Console.WriteLine($"{result} {Expression} -> " + NextOrientation);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user