userguides
  • Welcome
  • Contact Us
  • Getting Started
    • Quickstart
    • Inside ViewZen
  • ViewZen Accounts
    • Overview
    • Account Owner
    • Home Page
    • Member Profile
      • My Account
      • My Organization
      • Security
      • Permissions
    • Roles and Permissions
      • Standard Roles
      • Custom Roles
    • User Management
    • User Groups
    • Multi factor Authentication
    • Context based Permissions
    • API Keys
  • Appverse
    • Overview
    • Home Page
    • Apps
      • Create an App
        • Folders
          • Create
          • Edit
          • Delete
          • View Contents
        • Roles
        • Forms
          • Create
            • Get Familiar
              • General Properties
              • Hint
              • Appearance
              • Validations
                • Examples
              • List of Values
              • Scope
                • Examples
              • Search Settings
              • Security
              • Expressions
              • Appverse Expressions
                • Examples
              • Choices
              • Instance Name
              • Download Form
              • Import Form
            • Best Practices
            • Create with Form Builder
            • Create with GenAI
            • Create with ODK compatible xls
          • Edit
          • Delete
          • Deploy / Undeploy
          • Settings
            • General Settings
            • Data Display
            • Appearance
            • Languages
            • Auto Numbering
            • Lookup
            • Child Forms
            • Report Template
            • Validations
            • Data Formatting Rules
            • Record Access
            • Quick Filters
          • Allocation
            • Get Familiar
              • General Properties
              • View Permissions
          • Quick Configuration
          • Events and Actions
            • Save to DB
            • Lock Record
            • Update Status
            • Create / Update Record
            • Send Notifications
            • Custom Scripts
          • Conditions in Appverse
          • Advanced Search
          • Data
            • Card Layout
            • Grid Layout
            • Master Detail Layout
          • Dashboards
            • Publish Dataset
            • Dashboard
        • Dashboards
          • Link
      • Edit an App
      • Delete an App
      • List of all Apps
      • Publish an App
      • Export & Import an App
    • User Allocation
    • Library
      • Custom Scripts
      • Custom Queries
      • Report Templates
    • Departments
    • Settings
  • ViewZen Analytics
    • Overview
    • Landing Page
    • Dashboard
      • List of Dashboards
      • Create a Dashboard
        • Get Started
        • Datasets
        • Sheets
        • Version Control
        • Toolbar
          • Place Components
            • Properties
              • Data Properties
                • Data Fields
                • Inbuilt Aggregation Functions
                • Dimensions
                • Measures
                • X-axis and Y-axis
                • Column
                • Data Series
              • Format Properties
                • Title / Sub Title / Label
                • Appearance
                • Legend
                • Viewer Settings
                • General Settings
                • Axis Settings
                • Axis Label Settings
                • Axis Title Settings
                • Label Formatting
                • Sorting
                • Color Formatting
                • Column Formatting
                • Stacked Header
                • Footer
                • Actions and Events
                • Chart Settings
                • Grid Settings
                • Data Series Formatting
                  • Value Series
                  • Column Series
                  • Stacked Column Series
                  • Radar Column Series
                  • Waterfall Series
                  • Line Series
                  • Bubble Series
                  • Pie Series
                  • Donut Series
                  • Funnel Series
                  • Clustered Area Series
              • Tooltip Properties
                • Properties
            • Visuals
              • Cards
              • Charts
              • Grid
              • Textbox
              • Filter
              • Image
              • Zone
            • Visuals Marketplace
          • Edit Components
          • Delete Components
        • Filters
          • Fixed Filters
            • Create Filter
              • Filter Conditional Statements
            • Edit Filter
            • Delete Filter
          • Interactive Filters
            • Create Filter
            • Edit Filter
            • Delete Filter
      • Edit a Dashboard
      • Share a Dashboard
      • Delete a Dashboard
      • View a Dashboard
      • Use Dashboard for Presentations
Powered by GitBook
On this page
  • Components
  • Example
  • Synchronous and Asynchronous Events
  1. Appverse
  2. Apps
  3. Create an App
  4. Forms

Events and Actions

Apps -> <App> -> Events & actions

PreviousQuick ConfigurationNextSave to DB

Last updated 4 months ago

In Appverse, the Events and Actions framework enables automated workflows by defining specific actions triggered by events under predefined conditions. This feature helps to execute processes automatically when certain criteria are met.

Components

In Appverse, events and actions are made up of the following components

  • Action: Specifies what needs to be done when the event occurs. This could be updating a record, creating a record in another form, sending a notification, or executing a custom script.

  • Event: Defines what triggers the action. An event could be a form submission, record update, or a user-initiated action. User-initiated events are displayed to the users and has to be manually triggered by the user.

  • Conditions: Determines when the event should trigger the action. Conditions help filter events so that actions are only executed when specific criteria are met, preventing unnecessary operations. Read more about "" in Appverse.

  • Notification (SMS/Email/InApp): Allows sending alerts via SMS or email or InApp to notify relevant users when an event is successfully executed or if it fails. Read more about "" in Appverse.

Example

Event - An order is submitted.

Action - Put the order on Hold.

Condition - Trigger only if the customer has the "Put Order on Hold" flag set to "Yes."

Notify - Notify the salesperson assigned to the customer or the customer via email.

Synchronous and Asynchronous Events

In Appverse, configured actions can be executed in either synchronous or asynchronous mode, depending on the nature of the task and system requirements. Currently for optimal performance, the execution mode is controlled by a parameter called "Strategy". Strategy can either be "Wait" or "Emit". In future, we may provide more control over the sequence of execution of various configured events and actions.

  • If the strategy is set to "Wait", all the actions configured with strategy as "Emit" will wait for the "Wait" actions to get completed first. This means that actions with "Wait" and "Emit" strategy will execute sequentially or synchronously i.e. one after another.

  • However, all actions of "Wait" type will execute asynchronously. Similarly, all events of "Emit" type will execute asynchronously.

"Wait" Strategy

If a form needs to wait for the output of a configured Event and Action before proceeding, the strategy must be set to "Wait." This ensures that the form does not move forward until the action is fully executed and its output is received.

By enabling the "Wait" setting, the system holds control within the form, preventing further user actions or submissions until the necessary processing is completed. This is useful for scenarios where immediate validation, calculations, or external system responses are required before proceeding.

Note: This works only for online forms.

Example

  • Scenario: A form submits a loan application that requires an immediate credit score check before approval.

  • Configuration: The Event and Action for fetching the credit score is set to "Wait."

  • Outcome: The form will remain in a processing state until the credit score is retrieved, ensuring accurate decision-making before proceeding.

Using the Wait setting in Appverse ensures that dependent processes are completed before users can continue.

Conditions
Notifications
Events and Actions