R12.1-JA-2025June05
Update and Clean ADT Based on Time
You can use the pre-defined ADTs to define the intent diagnosis, but with the intent execution, the ADT data will become large or redundant. You can use a built-in function "GetTimeString" to update or delete the ADT data.
Complete the following steps to update ADT with "GetTimeString".
- Add a column for ADT. Enter a display name “timecolumn” and set the data type as Time.
- Add this ADT to intent as a reference table.
- Click All Intent Variables in the diagnosis.
- On the Use Automation Data Table tab, click +Automation Data Tables to add the ADT defined in step1.
- Swith to the Intent Variable tab and click Add Compound Variable to define a variable “ten_hours_before” with the function “GetTimeString” to prepared for being called later.
The format of this function is “GetTimeString (offset, timeunit)”, which can be used to get a certain time before/after the current time and return the time with string. If offset is equal to 0, it means the current time, and a negative number (such as -10) means before the current time. Timeunit can be 0/1/2, representing min/hour/day respectively.
For example, if you set the variable as “GetTimeString(-10,1)”, it means 10 hours before the current time.
- Add an Operate on Table logic to clean this ADT.
- Define the following settings to delete the ADT data.
- Select the defined ADT and then select Delete Table Row as operation.
- Set the matching condition as “timecolumn Larger than ten_hours_before”.
The column “timecolumn” is the one defined in step1, and the variable “ten_hours_before” is the one defined in step3. - Click OK.