# US 2021/0279079 A1 · System for custom validations and scripts for mobile applications

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279079 A1
- Document ID: US20210279079A1
- Status: Published application
- Kind: A1
- Application number: 16/812,565
- Filed: 2020-03-09
- Published: 2021-09-09
- Earliest claimed: 2020-03-09
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Saurabh SHRIVASTAVA; Srikanth Doddadalivatta Venkatesh PRASAD
- Web page: https://patentgrep.com/patent/US20210279079A1

## CPC

- G06F 9/44526: {Plug-ins; Add-ons}
- G06Q 10/00: Administration; Management
- G06F 8/33: Intelligent editors
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 9/45512: {Command shells}
- G06F 9/45529: {Embedded in an application, e.g. JavaScript in a Web browser}
- G06F 16/219: {Managing data history or versioning (querying versioned data G06F16/2474; querying temporal data G06F16/2477)}
- G06Q 30/0601: Electronic shopping [e-shopping]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Systems, methods, and other embodiments associated with enabling client-side enforcement of custom rules when the client is in offline mode include: creating a custom rule for enforcement on a mobile application client on a mobile application server; defining characteristics of user accounts for which the mobile application client is to enforce the custom rule; in response to a connection being established between an instance of the mobile application client for a specific user account and the mobile application server, determining that the instance of the mobile application client should enforce the custom rule based at least in part on a match between characteristics of the specific user account and the defined characteristics; and transmitting the custom rule to the instance of the mobile application client to enable the instance to enforce the custom rule when the instance is operating in the offline mode.

## Claims

### Claim 1

A computer-implemented method for enabling client-side enforcement of custom rules, the method comprising:
creating a custom rule for enforcement on a mobile application client on a mobile application server, wherein the mobile application client is configured to enforce one or more custom rules when operating in offline mode;
defining characteristics of user accounts for which the mobile application client is to enforce the custom rule;
in response to a connection being established between an instance of the mobile application client for a specific user account and the mobile application server, determining that the instance of the mobile application client should enforce the custom rule based at least in part on a match between characteristics of the specific user account and the defined characteristics; and
transmitting the custom rule to the instance of the mobile application client to enable the instance to enforce the custom rule when the instance is operating in the offline mode.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
placing the instance of the mobile application client into the offline mode in response to a detection of a lack of network connectivity to the mobile application server; and
while the instance of the mobile application client is operating in the offline mode:
(i) accepting a user input to the instance of the mobile application client that triggers enforcement of the custom rule, and
(ii) performing all functions of the custom rule locally by the instance of the mobile application client to immediately enforce the custom rule.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
composing a query to retrieve server-side supporting data that is queried during enforcement of the custom rule from a server-side mobile application database;
executing the query on the server-side mobile application database to obtain the server-side supporting data; and
transmitting the server-side supporting data to the instance of the mobile application client to further enable the instance to enforce the custom rule on the client side when the instance is operating in offline mode.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
placing the instance of the mobile application client into the offline mode in response to a detection of a lack of network connectivity to the mobile application server; and
while the instance of the mobile application client is operating in the offline mode:
(i) accepting a user input to the instance of the mobile application client that triggers enforcement of the custom rule, and
(ii) retrieving a portion of the supporting data from local storage to enable the instance of the mobile application client to immediately enforce the custom rule.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
adding the custom rule to a database of rules associated with the mobile application server;
incrementing a current version number of the database;
in response to the establishment of the connection, comparing the current version number of the database with a version number of the database stored by the mobile application client to determine that the current version number exceeds the stored version number, wherein; and
comparing the characteristics of the specific user account and the defined characteristics to find the match in response to the determination that the current version number exceeds the stored version number.

### Claim 6 (depends on 1)

The method of claim 1, wherein the custom rule is a script, and the mobile application client is configured to execute scripts to enforce custom rules without requiring changes to a build of the mobile application client.

### Claim 7 (depends on 1)

The method of claim 1, wherein the characteristics of the user accounts include one or more of (i) a geographical region associated with the user accounts and (ii) a user role associated with the user accounts.

### Claim 8 (depends on 1)

The method of claim 1, wherein the creation of the custom rule further comprises:
identifying an object of the mobile application client to which the custom rule is applied;
selecting an event for the object which will trigger enforcement of the custom rule; and
transmitting the selected event and identifier for the object to the instance of the mobile application client to further enable the instance to enforce the custom rule when the instance is operating in offline mode.

### Claim 9 (depends on 1)

The method of claim 1, wherein the creation of the custom rule further comprises:
generating instructions to present a graphical user interface (GUI) for creation of one or more custom rules;
transmitting the instructions to a client computing device associated with an administrator account to cause the GUI to be displayed; and
accepting user inputs received through the GUI to create the custom rule.

### Claim 10 (depends on 1)

The method of claim 1, wherein a GUI presented by the instance of the mobile application client displays the results of the custom rule immediately following acceptance of an input that triggers the custom rule.

### Claim 11 (depends on 1)

The method of claim 1, wherein the custom rule is one of (i) a validation rule, and (ii) a business logic rule.

### Claim 12

A computing system, comprising:
a processor;
a memory operably connected to the processor;
a non-transitory computer-readable medium operably connected to the processor and memory and storing computer-executable instructions that when executed by at least the processor cause the computing system to:
create a custom rule for enforcement on a mobile application client on a mobile application server, wherein the mobile application client is configured to enforce one or more custom rules when operating in offline mode;
define characteristics of user accounts for which the mobile application client is to enforce the custom rule;
in response to a connection being established between an instance of the mobile application client for a specific user account and the mobile application server, determine that the instance of the mobile application client should enforce the custom rule based at least in part on a match between characteristics of the specific user account and the defined characteristics; and
transmit the custom rule to the instance of the mobile application client to enable the instance to enforce the custom rule when the instance is operating in the offline mode.

### Claim 13 (depends on 12)

The computing system of claim 12, wherein the non-transitory computer-readable medium of claim further comprises instructions that when executed by at least the processor cause the computing system to:
place the instance of the mobile application client into the offline mode in response to a detection of a lack of network connectivity to the mobile application server; and
while the instance of the mobile application client is operating in the offline mode:
(i) accept a user input to the instance of the mobile application client that triggers enforcement of the custom rule, and
(ii) perform all functions of the custom rule locally by the instance of the mobile application client to immediately enforce the custom rule.

### Claim 14 (depends on 12)

The computing system of claim 12, wherein the non-transitory computer-readable medium of claim further comprises instructions that when executed by at least the processor cause the computing system to:
compose a query to retrieve server-side supporting data that is queried during enforcement of the custom rule from a server-side mobile application database;
execute the query on the server-side mobile application database to obtain the server-side supporting data; and
transmit the server-side supporting data to the instance of the mobile application client to further enable the instance to enforce the custom rule on the client side when the instance is operating in offline mode.

### Claim 15 (depends on 14)

The computing system of claim 14, wherein the non-transitory computer-readable medium of claim further comprises instructions that when executed by at least the processor cause the computing system to:
place the instance of the mobile application client into the offline mode in response to a detection of a lack of network connectivity to the mobile application server; and
while the instance of the mobile application client is operating in the offline mode:
(i) accept a user input to the instance of the mobile application client that triggers enforcement of the custom rule, and
(ii) retrieve a portion of the supporting data from local storage to enable the instance of the mobile application client to immediately enforce the custom rule.

### Claim 16 (depends on 12)

The computing system of claim 12, wherein the non-transitory computer-readable medium of claim further comprises instructions that when executed by at least the processor cause the computing system to:
add the custom rule to a database of rules associated with the mobile application server;
increment a current version number of the database;
in response to the establishment of the connection, compare the current version number of the database with a version number of the database stored by the mobile application client to determine that the current version number exceeds the stored version number, wherein; and
comparing the characteristics of the specific user account and the defined characteristics to find the match in response to the determination that the current version number exceeds the stored version number.

### Claim 17

A non-transitory computer-readable medium storing computer-executable instructions that when executed by at least a processor of a computer cause the computer to:
create a custom rule for enforcement on a mobile application client on a mobile application server, wherein the mobile application client is configured to enforce one or more custom rules when operating in offline mode;
define characteristics of user accounts for which the mobile application client is to enforce the custom rule;
in response to a connection being established between an instance of the mobile application client for a specific user account and the mobile application server, determine that the instance of the mobile application client should enforce the custom rule based at least in part on a match between characteristics of the specific user account and the defined characteristics; and
transmit the custom rule to the instance of the mobile application client to enable the instance to enforce the custom rule when the instance is operating in the offline mode.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, further comprising instructions that when executed by at least the processor cause the computer to:
place the instance of the mobile application client into the offline mode in response to a detection of a lack of network connectivity to the mobile application server; and
while the instance of the mobile application client is operating in the offline mode:
(i) accept a user input to the instance of the mobile application client that triggers enforcement of the custom rule, and
(ii) perform all functions of the custom rule locally by the instance of the mobile application client to immediately enforce the custom rule.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, further comprising instructions that when executed by at least the processor cause the computer to:
compose a query to retrieve server-side supporting data that is queried during enforcement of the custom rule from a server-side mobile application database;
execute the query on the server-side mobile application database to obtain the server-side supporting data; and
transmit the server-side supporting data to the instance of the mobile application client to further enable the instance to enforce the custom rule on the client side when the instance is operating in offline mode.

### Claim 20 (depends on 17)

The non-transitory computer-readable medium of claim 17, further comprising instructions that when executed by at least the processor cause the computer to:
add the custom rule to a database of rules associated with the mobile application server;
increment a current version number of the database;
in response to the establishment of the connection, compare the current version number of the database with a version number of the database stored by the mobile application client to determine that the current version number exceeds the stored version number, wherein; and
comparing the characteristics of the specific user account and the defined characteristics to find the match in response to the determination that the current version number exceeds the stored version number.
