Class BTDynamicFormsTemplateAutoGenerableRequiredSearch

All Implemented Interfaces:
Serializable, Tool, ValidExecution

Business task to search for required auto generable Dynamic Forms templates.

This task searches for Dynamic Forms templates that are marked as "auto generable from mobile" in the Mobile Card configuration and have an outcome rule with the "required if auto-generable" flag set to true for the specified outcome reason.

Algorithm:

  1. Load all Mobile Card Rules for the current Intervention Group
  2. Filter on type Dynamic Forms
  3. Collect all templates defined in 'Template AutoGenerable from mobile' field
  4. For each template, load related Dynamic Forms Outcome Rules
  5. If a rule exists for the current outcome reason with ATORREQUIREDIFAUTOGENERABLE = 1, add to result
Since:
22.0
See Also:
GCApi:
task