任务执行如果结果为失败,根据配置决定是否跳出

usertest
zhangxiaofeng 3 months ago
parent 5e2e9dcbcb
commit 8000a414b1

@ -309,6 +309,11 @@ namespace DS.WMS.Core.TaskPlat
if (isSuccess == false)
{
flowLog.IsSuccess = false;
if (!executeConfig.IsExceptionContinue)
{
throw new Exception("模块执行结果为失败并且IsExceptionContinue配置为false已跳出流程");
}
}
}
}
@ -335,11 +340,11 @@ namespace DS.WMS.Core.TaskPlat
{
exMessage = WriteLog("模块外部调用过程中发生异常", ex);
}
flowLogDetail.ExceptionMessage = exMessage;
flowLog.IsComplete = false;
flowLog.IsSuccess = false;
flowLogDetail.ExceptionMessage = exMessage;
flowLogDetail.IsComplete = false;
flowLogDetail.IsSuccess = false;
await tenantDb.CopyNew().Insertable(flowLogDetail).ExecuteCommandAsync();

Loading…
Cancel
Save