Skip to main content

Work with Task Templates

Task Templates let Admins create standardized formats for approval and document review tasks that developers use in Human-in-the-Loop and Reject/Repair workflow steps. Without templates, every workflow would need its own custom task configuration, leading to inconsistency and duplicated effort. Templates are versioned automatically, can be exported and imported as JSON, and ensure consistent task handling across all your workflows.

You can design a template for two main purposes:

  • Approval: For tasks where an approver needs to review and approve or reject. A template can include both Data Fields JSON and Action Buttons configuration.
  • Document Review: For tasks where a reviewer verifies the extracted text from documents and makes changes if required. A template includes only Action Buttons configuration.

In a Human-in-the-Loop step, approvals are handled through action buttons. When an approver selects an action button, the workflow continues according to the selected action. Action buttons such as Approve, Reject, or Send for Review control how the workflow proceeds based on the user's choice, and can trigger target workflows for multi-step scenarios like Maker-Checker.

In addition to action buttons, Human-in-Loop steps can include input data fields and labels which are defined in a JSON format. These elements are displayed to the approver to provide context or to capture required information before the workflow continues. Templates support input controls like text boxes, drop-downs, checkboxes, date pickers, and tables, all defined in JSON format.

To create Approval templates:

  1. In the menu, click Tasks → Templates. The Task Templates page appears.

    img

    Task Templates page

  2. View Task Templates:

    Column nameDescription
    NameDisplays the unique task template name.
    VersionDisplays version of the task. For more details, see Version.
    TypeDisplays the task type. This shows as Approval when the Approval template is selected, or Reject/Repair when the Document Review template is selected.
    TitleDisplays the default title specified in the template, which can be overridden by the plugin field Task Title. For more details, check Human in Loop step in the AutomationEdge Standard Plugins Reference Guide.
    Last UpdatedDisplays date and time when the task was last updated.
    ActionClick Edit img, Delete img, or Export img to manage the task. For more details, see Action.

Version

When you create a Task Template, it is assigned the default version number 1. You can then use the template to create tasks. Each task created refers to the template as its source. If you modify and save the template later, the version number is incremented (for example, from version 1 to version 2), because the template has already been used to create tasks.

Action

  • Edit Click img to open the task template in edit mode. This allows you to update the template details such as Data Fields, Action buttons and other configurations. After making changes, save the template to apply the updates.

  • Delete Click img to delete the template. A confirmation dialog appears asking you to confirm the deletion.

  • Export Click img to export the template in JSON format.

To add templates:

  1. On the Task Templates page, click Add. A list of task template types appears.

    img

    Task template type selection

  2. In the list, select Approval. The Task Templates details appear.

    img

    Task Templates details

  3. Enter the following field details:

    Field nameDescription
    NameEnter the unique task template name.
    DescriptionEnter a brief description of what the task is for.
    Task TypeWhen you select the Approval type, the Approval option is set by default.
    Default Task TitleEnter the default title that will be automatically assigned to new tasks. This title is replaced by the title specified in the Human in the Loop step and is displayed in the Pending Task details.
    Pause Workflow ExecutionSelect to pause the workflow until this task is completed by the user.
    Notify assigned users via emailSelect this to send email notification to the nominated user whenever a new pending task is created.
    Add Data Fields (JSON)Write a JSON code to create data fields. You can click Samples to get different sample code. For details, see Sample section.
    Add Action ButtonsClick + to add action buttons. For details, see Add Action Buttons.
  4. Click Save. Template is created.

    Note
    • Click Preview to view the template.

      img

      Template preview

    • Click Cancel to cancel creating the template. The value key in the JSON Sample is used only for preview for Approval and Document Metadata. For example, if "value":"John" is specified in the sample, the template or Document Metadata Preview will show the value for the key as John. However, this value will not be reflected in the actual Pending Task. There, the value will be obtained at runtime during workflow execution.

      img

      Template preview with sample values

Samples

While creating task templates, you can add data fields in JSON format. You can also refer to predefined samples.

img

Samples option in Data Fields

To add samples in Data Fields:

  1. On the Task Templates page, click Samples. The Samples dialog appears.

    img

    Select Sample dialog

  2. In the Select Sample list, select the sample you want to use. The following three samples are available, each of which represent different types of data.

img

Formfield sample types

Formfield

Use the Formfield sample to build input forms that collect data from users — for example, a service request form, a feedback survey, or an onboarding checklist. Formfield sample provides a set of UI controls (text boxes, drop-downs, checkboxes, and more) that you can combine to create structured, validated forms.

The AE UI renders each control based on the uiControl property defined in the JSON template, and automatically applies any configured validations.

  • The following UI controls are supported:
    o label – Displays read-only text. Use it for headings, instructions, or contextual information within the form.
    o textarea – A multi-line text input field. Ideal for comments or descriptions.
    o checkbox – Checkbox will be displayed. If checked, the value will be set as “true”, or else as “false”.
    o textbox – A single-line input field for short text or numeric values, such as a name, email address, or quantity.
    o radio – Single-choice selection. Mandatory Control: Users must select one option. The form cannot be submitted or saved until a value is selected.
    o select – A drop-down list with fixed, non-editable options. Users must choose a value from the list before the form can be saved.
    o combobox – Drop-down list that allows users to select an option or enter a custom value. Non-Mandatory Control: User can select one option, provide custom input, or leave it blank.
    o date – Opens a calendar picker for date selection. The default format is YYYY-MM-DD unless you specify a different one using the dateFormat property.
    Supported Date Formats If you use the date control, you can configure the display format by setting the dateFormat property in your JSON template. The following formats are supported:
FormatExample
YYYY-MM-DD2026-02-16
YYYY/MM/DD2026/02/16
DD-MM-YYYY16-02-2026
DD/MM/YYYY16/02/2026
MM-DD-YYYY02-16-2026
MM/DD/YYYY02/16/2026
MMMM DD, YYYYFebruary 16, 2026
DD-MMM-YYYY16-Feb-2026
MMM DD, YYYYFeb 16, 2026
YYYY-MMM-DD2026-Feb-16
DD/MMM/YYYY16/Feb/2026
  • Section: Use the Section sample to group related form fields under a common heading. This is especially helpful for longer forms — for instance, you might group personal details, contact information, and preferences into separate sections to make the form easier to scan and complete.
  • Table: Use the Table sample to display or capture data in a row-and-column format. Table format works well for structured, repeating data — such as a list of line items in a purchase order, a schedule of tasks, or a set of configuration parameters.  
Note

secret is only applicable for field controls, textbox and label. Values for fields that are marked as secret are kept in the encrypted format in the database. For example,

{
"key": "id",
"displayName": "Employee Id",
"type": "formField",
"secret": "true",
"uiControl": "textbox",
},
  1. In the dialog, do one of the following:
    • Click Import. The sample is copied to the Add Data Field (JSON) section. OR
    • Click Copy to Clipboard. The sample is copied, and you can paste it into the Add Data Field (JSON) section.

Add Action Buttons

Action buttons define the options that users can select while performing a task. These buttons control how the task proceeds based on the user's choice. For example, you can configure action buttons such as Approve, Reject, or Send for Review.

img

Action buttons section

To add Action button:

  1. In Add Action Buttons section, click Add Actions. Details to Add Actions appear.

    img

    Add Actions details

  2. Enter the following field details:

    Field nameDescription
    Button IdEnter the button ID.
    LabelEnter the label that you want to display on the button.
    TooltipEnter a short message that appears when you hover over a button to explain its purpose.
    Background ColorSelect a color for the button.
    Text ColorSelect a color for text on the button.
    StatusEnter the status that will appear on the Task History tab after the task is completed.
    WorkflowSelect the workflow that should be triggered when the button is selected. You can also search for the workflow. For more details, see Target Workflow section.
    Workflow Runtime parameterSelect the runtime parameter defined in the target workflow. You can also search for the parameter. For more details, see Workflow Runtime Parameter section.
  3. Click Update. The button is added to the Add Actions Buttons.

Target Workflow

A target workflow is another workflow that is invoked from the current source workflow. You can use this option when the approval process requires multiple steps, such as a Maker-Checker scenario. The source workflow handles the initial processing. When the user clicks a specific action button, the target workflow is triggered. The target workflow performs additional processing based on the data from the source workflow and then decides.

Note

Ensure that the target workflow in the template action has only one mandatory runtime parameter.

Workflow Runtime Parameter

To pass information from the source workflow to the target workflow:

  • In the Approval Task Template, define a runtime parameter for the action.
  • Map this runtime parameter to the target workflow. This parameter acts as an input container for the source workflow's metadata.
  • The source workflow passes the metadata as a JSON object into this runtime parameter.

To create document review template:

  1. In the menu, click Tasks → Templates. The Task Templates page appears.

    img

    Task Templates page

  2. Click Add. A list of task template types appears.

    img

    Document Review template type selection

  3. Select Document Review. Add Document Metadata dialog appears.

    img

    Add Document Metadata confirmation dialog

  4. In the dialog, do one of the following:

    • Click Yes. If Document Metadata has not been created, you are redirected to the Document Metadata tab. For details, see the [Document Metadata]. OR
    • Click No, Proceed to Template Creation. If Document Metadata is already created, the Task Templates page appears.
    img

    Document Review Task Templates page

  5. Enter the following field details:

    Field nameDescription
    NameEnter the unique task name.
    DescriptionEnter the task description.
    Task TypeTask type is selected Reject/Repair by default.
    Default Task TitleEnter the task title.
    Notify Assigned user via emailSelect this to send email notification to the nominated user whenever a new pending task is created.
    Add Action ButtonsClick Add Actions to add action buttons. For more details, see Add Action Buttons.
  6. Click Save. The template is created.

Add Action Buttons

Action buttons define the options that users can select while performing a task. These buttons control how the task proceeds based on the user's choice. For example, you can configure action buttons such as Submit, send OTP, Verify, and so on.

img

Action buttons for Document Review template

To add an action button:

  1. In the Add Action Buttons section, click Add Actions. The fields to add the details appear.

    img

    Add Action button details

  2. Enter the following field details:

    Field nameDescription
    Button IdEnter the unique button ID.
    LabelEnter the label that you want to display on the button.
    TooltipEnter a short message that appears when you hover over a button to explain its purpose.
    Background ColorSelect a color for the button.
    Text ColorSelect a color for text on the button.
    StatusEnter the status that will appear on the Task History tab after the task is completed.
    WorkflowSelect the workflow that should be triggered when the button is selected.
    Workflow Runtime parameterSelect the runtime parameter defined in the target workflow.
  3. Click Add. The button is added to the template.