mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
重写了触发器底层逻辑
This commit is contained in:
@@ -43,6 +43,23 @@ namespace Serein.NodeFlow.Model
|
||||
}
|
||||
try
|
||||
{
|
||||
var getObjExp = CustomData?.ToString();
|
||||
|
||||
if (IsCustomData && !string.IsNullOrEmpty(getObjExp) && getObjExp.Length >= 4)
|
||||
{
|
||||
|
||||
var ExpOpOption = getObjExp[..4];
|
||||
if(ExpOpOption.ToLower() == "@get")
|
||||
{
|
||||
result = PreviousNode?.GetFlowData();
|
||||
if (result is not null)
|
||||
{
|
||||
result = SerinExpressionEvaluator.Evaluate(getObjExp, result, out _);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
var isPass = SereinConditionParser.To(result, Expression);
|
||||
NextOrientation = isPass ? ConnectionType.IsSucceed : ConnectionType.IsFail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user