A better comment around a tricky part of the code.

This commit is contained in:
Dan 2022-03-09 09:43:08 -05:00
parent 41b5106a28
commit e3c1a908fe

View File

@ -208,7 +208,8 @@ class WorkflowService(object):
WorkflowService.populate_form_with_random_data(task, task_api, required_only)
if not WorkflowService.validate_form(task, task_api):
# In the process of completing the form, it is possible for fields to become required
# based on later fields. Re-run the validation to assure we complete the forms correctly.
# based on later fields. If the form has incomplete, but required fields (validate_form)
# then try to populate the form again, with this new information.
WorkflowService.populate_form_with_random_data(task, task_api, required_only)
processor.complete_task(task)