提交 819ac321 编写于 作者: 麦壳饼's avatar 麦壳饼

报错问题

上级 fceb0214
...@@ -524,7 +524,7 @@ namespace IoTSharp.FlowRuleEngine ...@@ -524,7 +524,7 @@ namespace IoTSharp.FlowRuleEngine
public async Task<List<Flow>> ProcessCondition(Guid flowId, dynamic data) public async Task<List<Flow>> ProcessCondition(Guid flowId, dynamic data)
{ {
var flow = _allFlows.FirstOrDefault(c => c.FlowId == flowId); var flow = _allFlows.FirstOrDefault(c => c.FlowId == flowId);
var flows = _allFlows.Where(c => c.SourceId == flow.bpmnid).ToList(); var flows = _allFlows.Where(c => c.SourceId == flow?.bpmnid).ToList();
var emptyflow = flows.Where(c => c.Conditionexpression == string.Empty).ToList() ?? new List<Flow>(); var emptyflow = flows.Where(c => c.Conditionexpression == string.Empty).ToList() ?? new List<Flow>();
var tasks = new BaseRuleTask() var tasks = new BaseRuleTask()
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册