Allow use of input for value of manually mapped "Call workflow" Boolean type fields

Feature description:

Discourse has introduced a new “Workflows” feature, which allows forum administrators to easily configure complex custom operations to facilitate maintenance or otherwise enhance their forum.

Please allow step inputs to be used to set the value of manually mapped Boolean type fields in “Call workflow” workflow steps.

Current behavior:

The value of Boolean type field can only be hardcoded in the step configuration via a switch:

Reproducible steps:

  1. Log into a Discourse forum account with admin permissions, on a site that has the new “Workflows” feature enabled.
  2. Open the “Workflows” page (/admin/plugins/discourse-workflows/workflows).
  3. Click the “+ New workflow” button.
    A new workflow will be created.
  4. Click the + button.
    The “Add step” panel will open.
  5. Select Flow > Call workflow from the panel.
    A “Call workflow” step will be added to the workflow.
  6. Double click on the “Call workflow” step.
    The configuration dialog for the step will open.
  7. Select “Map fields manually” from the “Input” menu in the dialog.
    A “Fields” section will appear in the dialog.
  8. Click the “+ Add field” button in the dialog.
    A field configuration interface will be added to the dialog.
  9. Select “Boolean” from the “Type” menu.

:slightly_frowning_face: The value of the field can only be hardcoded in the step configuration via a switch. Unlike other field types, there is no way to use an input to set the value.

Discourse version:

ba63d427fd88c5d83cb18695b16dbdbfad6fa834