Search

Trigger Tasks

Articles

In automation workflows, human interventions are needed frequently. You can design human actions and trigger tasks based the on the actions using Button settings.

Button Settings

By default, two buttons Cancel and Save are provided with actions Exit, Save and Exit, respectively. You can add more buttons as required by the automation flow.

  1. Enter the Button Name and select the Action of the Buttons.

    For Approval flow, add button Approve with action Save and Exit.

  2. In the State field, all the execution states you have added in the table are listed. Select the State from the drop-down that is to be updated, on clicking the button.
  3. In the Task Associated field, all the tasks you have created in the App are listed. Select the Task from the drop-down that is to be triggered, on clicking the button.

Inline Tables are displayed below the main table with Button Name and Action fields.

In Employee Salary Administration HyperApp, the Supervisor sends an increment recommendation to the Approver. Approver either approves or rejects the increment.

  • When the Approver clicks the Approve button, the Task to update the increment in Employee’s payroll record is triggered and State is updated to Approved.
  • When the Approver clicks the Reject button, the Task to send an email stating “Sorry! The recommendation is beyond expectation.” is triggered and State is updated to Rejected.

Image description

When the Approver opens the form, the following screen is displayed.
Tasks are triggered and State of the record is updated based on the Approve/Reject button clicked.

Image description

Tasks triggered from Forms require cluster assigned in the node configuration.

Trigger Task Prerequisites

  • Design of the task should ensure that the record is locked so that another task does not access it simultaneously and the lock is released before the completion of the task.
    • You can select and lock rows in the Jiffy Select node. If the row is locked, it is non-editable. Resultant rows are not accessible by any other tasks.
    • The selected data is used in the succeeding steps of the Task Associated.
    • To unlock the selected rows, use the Unlock Row node as the last node in the task.
  • UUID parameter must be defined for the task.
    • Define UUID in the Start node of the Task which must be triggered. The UUID relates the record in the Form to the Task.
    • The UUID from the Start node is passed to the next node.
    • Use the Jiffy Select node to get the required columns for the UUID passed.

A form can have a maximum of four buttons in maintable and two buttons for the inline table.

You can change the name of the default buttons Cancel and Save if required.

Did you find what you were looking for?