evaluateConditionRule 评估条件规则
(execution *WorkflowExecution, rule ConditionRule, evaluator *ExpressionEvaluator)
| 849 | |
| 850 | // evaluateConditionRule 评估条件规则 |
| 851 | func (e *Engine) evaluateConditionRule(execution *WorkflowExecution, rule ConditionRule, evaluator *ExpressionEvaluator) (bool, error) { |
| 852 | // 构建表达式 |
| 853 | expression := fmt.Sprintf("%s %s %v", rule.Variable, rule.Operator, rule.Value) |
| 854 | return evaluator.EvaluateBool(expression) |
| 855 | } |
| 856 | |
| 857 | // markExecutionCompleted 标记执行完成 |
| 858 | func (e *Engine) markExecutionCompleted(execution *WorkflowExecution) { |
no test coverage detected