- 28 May 2024
- 5 Minutes to read
- Print
- PDF
Conditions
- Updated on 28 May 2024
- 5 Minutes to read
- Print
- PDF
Overview
A condition consists of a field, an operator, and a value. Conditions determine which transactional records are selected for processing. Complex conditions can be crafted for rules that incorporate multiple conditions, using AND or OR operators to connect them.
Field | Description |
---|---|
Field | Select the field value from the drop-down menu based on the table selected in the General Details tab. Note
|
Operator | Choose the operator to meet the stipulated condition in value. The operator would vary depending on the type of values selected in the Field. For example, Text, Numeric etc. |
Value | Specify the value to be attained. |
- For adding conditions, icon can be used to include new conditions.
- For removing conditions, icon can be used to delete unwanted conditions.
Field
Field values populate according to the transaction table chosen from the drop-down list in the General Details tab, from where you can select the necessary option.
- All tables are transactional. The tables created by the admin will be selectable and the field value attributes are dependent on the Table selected
Dot Walking
The Dot walking concept helps us to traverse from one table to another table based on the data source of the field selected from the table in the general details screen. Usually, conditions can be set on properties connected to the parent table and related tables alike.
The concept is available for users who want to define conditions on the attributes of the parent table. The Dot Walking concept is applicable in all the below scenarios.
- Within the same table
- Main table to another associated table
- Main table to multiple associated tables
Dot walking is the process of using the dot notation to navigate from the parent table to the associated tables. It is easy to move from one table to another with dot walking. It decides which operators should be loaded and what values to take into account based on the types of fields. The operator would load based on the data type of the last node in dot walking.
Figure: Condition stepper
Figure: Condition stepper - Dynamic
For more information related to Dot-walking concept, refer Dot-walking.
Operator
The operators will be displayed based on the selected field value. Select the required operator from the drop-down list. The possible values for operators are as shown below.
When the Data Type is String
Consider the example where the user has selected the Description field, then under the Conditions, the Operators loaded will be related to the Textbox values.
Field | Operator | Value |
---|---|---|
Description | Starts with | Outlook |
Description | Ends with | Outlook |
Description | Contains | Outlook |
Description | Does not contain | Outlook |
Description | Is | Outlook |
Description | Is Not | Outlook |
Description | Is Empty | NA |
Description | Is Not Empty | NA |
Description | Less than | 20 |
Description | More than | 20 |
Description | Changes | NA |
Description | Doesn't change | NA |
Description | Changes from | one to another |
When Data Type is Numeric
Consider the example where the user has selected the Numeric field, then under the Conditions, the Operators loaded will be related to the Numeric values.
Field | Operator | Value |
---|---|---|
Cost | = | 15 |
Cost | != | 15 |
Cost | > | 15 |
Cost | < | 15 |
Cost | Is Empty | 15 |
Cost | >= | 15 |
Cost | <= | 15 |
Cost | Between | 15 to 50 |
Cost | Changes | 15 |
Cost | Doesn't Change | 15 |
Cost | Changes from | 15 to 50 |
Cost | Is one of | 15 |
Cost | Is not one of | 15 |
When Data Type is Date
Consider the example where the user has selected the Date field, then under the Conditions, the Operators loaded will be related to the Date values.
Field | Operator | Value |
---|---|---|
Date Type | On | 16-May-2023 |
Not on | 16-May-2023 | |
Before | 16-May-2023 | |
On or Before | 16-May-2023 | |
After | 16-May-2023 | |
On or After | 16-May-2023 | |
Between | 1-1-2022 - 31-12-2022 | |
Closed Date | Is Empty | NA |
Is Not Empty | NA | |
Is Anything | NA | |
Is Same | Logged Date | |
Is Different | NA | |
Is More Than | one day after current date | |
Is Less Than | two days before current date | |
Last Updated | Changes | NA |
Doesn't Change | NA | |
Changes From | NA |
As illustrated below, the "Date control" operator function allows multiple conditions to be set on the conditions page. The operators that can be used in this scenario are:
- Is more than
- Is less than
Figure: Date Control
When Data Type is Boolean
Consider the example where the user has selected the Field as Is Active under Conditions, then the Operator will be Is and Value as shown below.
Figure: When Data Type is Boolean
Value | Implication |
---|---|
Yes | |
No |
Dynamic Operator
Tables in a user interface or an application's backend that can alter their content easily in response to events, user input, or data modifications are referred to as dynamic tables. We can create dynamic groups and admin tables to which the dynamic conditions can apply. Because of these tables' extreme flexibility and adaptability, developers may design interfaces that support a wide range of data types and user needs or interfaces that can adapt to different user needs and data formats.
The "Dynamic" operator function can be used to map the dynamic tables in the scheduler. When we select the Dynamic operator, we get two drop-down. The first drop-down is to select Dynamic groups/Admin Table and the second drop-down is to select the fields of the table selected. For more information refer the image below.
For more information on the Dynamic concept in Schduler, refer Dynamic Scheduler
- When Dynamic tables are selected in the condition stepper, all the Admin tables will appear grouped under Admin Table, whereas only those Dynamic groups will appear which belong to the Transaction table (Based on the table on which the Scheduler is being configured, the Admin Table/Dynamic Group should point to the same data source). The selection of Field/Table points to the same data source (screenshot).
Grouping of Conditions
When there are multiple conditions which need to be computed together, these conditions can be grouped together in a Scheduler. This can be achieved by using the AND/OR conditions and by using the grouping functionality provided in the tool.
Figure: Grouping of Conditions
- A Static condition with And of Dynamic condition is allowed.
- A Static condition with Or of Dynamic condition is not allowed.
Value
Based on the selected Field type and Operator the options are populated in the Value field.
The value field can be one of the following four types:
- Date: Represents a calendar date. This can be used for inputting or displaying dates in various formats (e.g., MM/DD/YYYY or YYYY-MM-DD). In programming, date-related operations and formatting are commonly used for managing time-sensitive data.
- Dropdown: A dropdown, also known as a drop-down menu or list, is a user interface element that allows users to select one option from a list of available options. This is often used when you have a predefined set of choices, and the user can choose one from the list.
- Numeric: Refers to numerical data, including integers and floating-point numbers. Numeric input is used when you need users to enter numerical values, such as quantities, amounts, or any other numeric data. Validation is typically applied to ensure that only valid numeric input is accepted.
- String: Represents a sequence of characters. String input is used for text-based data, such as names, addresses, or any other textual information. It's a versatile data type that can accommodate a wide range of alphanumeric characters.