Skip to content

Commit 7f6c528

Browse files
authored
feat: The discriminator supports variables (#2311)
1 parent 08c734b commit 7f6c528

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/application/flow/step_node/condition_node/impl/base_condition_node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ def branch_assertion(self, branch):
3636
return all(condition_list) if condition == 'and' else any(condition_list)
3737

3838
def assertion(self, field_list: List[str], compare: str, value):
39+
try:
40+
value = self.workflow_manage.generate_prompt(value)
41+
except Exception as e:
42+
pass
3943
field_value = self.workflow_manage.get_reference_field(field_list[0], field_list[1:])
4044
for compare_handler in compare_handle_list:
4145
if compare_handler.support(field_list[0], field_list[1:], field_value, compare, value):

0 commit comments

Comments
 (0)