# US 2023/0401058 A1 · Semantic functional wrappers of services

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

- Number: US 2023/0401058 A1
- Document ID: US20230401058A1
- Status: Published application
- Kind: A1
- Application number: 18/454,555
- Filed: 2023-08-23
- Published: 2023-12-14
- Earliest claimed: 2020-02-24
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Tom L. Button; Federico Zoufaly
- Web page: https://patentgrep.com/patent/US20230401058A1

## CPC

- G06F 8/76: Adapting program code to run in a different environment; Porting
- G06F 8/75: Structural analysis for program understanding
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 2209/541: Client-server
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Functional wrappers are scripts and related software that provide a way to group and invoke functionality comprising semantic intent in a legacy application. These functional wrappers allow programmatic access to functionality in legacy applications in contemporary software architectures without risk of porting errors. Additional functionality to provide features with presently expected, but not available at the time the legacy applications were developed, such as functional wrappers to provide parallelism and scaling, are disclosed. Finally, automatic generation of the functional wrappers are also disclosed.

## Claims

### Claim 1

A system comprising:
a processor; and
a memory communicatively connected to the processor, the memory being configured to store computer-executable instructions that when executed by the processor, causes the processor to perform operations comprising:
analyzing, by a script generation software application, a legacy application to identify user interface elements of the legacy application;
analyzing, by the script generation software application, usage of the legacy application to identify a functionality of the legacy application corresponding to a semantic intent, the semantic intent mapping one or more user interface requirements of a non-legacy application to one or more first functions of the legacy application, wherein one or more second functions of the non-legacy application lack at least one one-to-one correspondence with the one or more first functions of the legacy application;
generating, by the script generation software application, virtual user interface elements that comprise the user interface elements of the legacy application, a set of control interfaces for invoking the user interface elements, and wrappers of the user interface elements for exposing the user interface elements for execution;
generating, by the script generation software application, a software map that maps the user interface elements of the legacy application to the functionality of the legacy application; and
generating, by the script generation software application, one or more scripts based at least on the user interface elements as wrapped by the virtual user interface elements and the functionality of the legacy application.

### Claim 2 (depends on 1)

The system of claim 1, wherein at least one script of the one or more scripts is configured to invoke at least one of the user interface elements by at least one of a journaling hook or an operating system API.

### Claim 3 (depends on 1)

The system of claim 1, wherein the analyzing of the legacy application to identify the user interface elements comprises performing a static analysis, the static analysis comprising scanning, by the script generation software application, source code of the legacy application to identify one or more user interface element identifiers based on one or more user identifier class types.

### Claim 4 (depends on 3)

The system of claim 3, wherein the operations comprise receiving, at the script generation software application, a preliminary map data file of potential user interface elements, and wherein the static analysis is based at least on the preliminary map data file.

### Claim 5 (depends on 3)

The system of claim 3, wherein the analyzing of the usage of the legacy application comprises performing a dynamic analysis, the dynamic analysis comprising:
recording, by the script generation software application, usage activity of a running instance of the legacy application;
extracting, by the script generation software application, user interface elements invoked during run time; and
mapping, by the script generation software application, user interface elements identified during static analysis to user interface elements identified during the dynamic analysis.

### Claim 6 (depends on 5)

The system of claim 5, wherein the operations comprise receiving a preliminary software data map, the performing the dynamic analysis comprising performing the dynamic analysis based at least on one or more of setup variables or environmental variables that are included in the preliminary software data map.

### Claim 7 (depends on 5)

The system of claim 5, wherein the operations comprise receiving a preliminary recording setup data file, the performing of the dynamic analysis comprising performing the dynamic analysis based at least on pre-identified sets of functionality corresponding to the semantic intent, the preliminary recording setup data file comprising the semantic intent, the semantic intent being used by the script generation software application to generate a script that corresponds to each semantic intent of the preliminary recording setup data file.

### Claim 8 (depends on 7)

The system of claim 7, wherein the operations comprise deploying the generated scripts by storing, in a repository, at least one generated script, the wrappers of the user interface elements, and the software map.

### Claim 9

A computer-implemented method comprising:
analyzing, by a script generation software application, a legacy application to identify user interface elements of the legacy application;
analyzing, by the script generation software application, usage of the legacy application to identify a functionality of the legacy application corresponding to a semantic intent, the semantic intent mapping one or more user interface requirements of a non-legacy application to one or more first functions of the legacy application, wherein one or more second functions of the non-legacy application lack at least one one-to-one correspondence with the one or more first functions of the legacy application;
generating, by the script generation software application, virtual user interface elements that comprise the user interface elements of the legacy application, a set of control interfaces for invoking the user interface elements, and wrappers of the user interface elements for exposing the user interface elements for execution;
generating, by the script generation software application, a software map that maps the user interface elements of the legacy application to the functionality of the legacy application; and
generating, by the script generation software application, one or more scripts based at least on the user interface elements as wrapped by the virtual user interface elements and the functionality of the legacy application.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein at least one script of the one or more scripts is configured to invoke at least one of the user interface elements by at least one of a journaling hook or an operating system API.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, wherein the analyzing of the legacy application to identify the user interface elements comprises performing a static analysis, the static analysis comprising scanning, by the script generation software application, source code of the legacy application to identify one or more user interface element identifiers based on one or more user identifier class types.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, comprising receiving, at the script generation software application, a preliminary map data file of potential user interface elements, and wherein the static analysis is based at least on the preliminary map data file.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein the analyzing of the usage of the legacy application comprises performing a dynamic analysis, the dynamic analysis comprising:
recording, by the script generation software application, usage activity of a running instance of the legacy application;
extracting, by the script generation software application, user interface elements invoked during run time; and
mapping, by the script generation software application, user interface elements identified during static analysis to user interface elements identified during the dynamic analysis.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, comprising receiving a preliminary software data map, the performing the dynamic analysis comprising performing the dynamic analysis based at least on one or more of setup variables or environmental variables that are included in the preliminary software data map.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, comprising receiving a preliminary recording setup data file, the performing of the dynamic analysis comprising performing the dynamic analysis based at least on pre-identified sets of functionality corresponding to the semantic intent, the preliminary recording setup data file comprising the semantic intent, the semantic intent being used by the script generation software application to generate a script that corresponds to each semantic intent of the preliminary recording setup data file.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, comprising deploying the generated scripts by storing, in a repository, at least one generated script, the wrappers of the user interface elements, and the software map.

### Claim 17

One or more non-transitory computer-readable media storing computer-executable instructions that upon execution cause one or more processors to perform operations comprising:
analyzing, by a script generation software application, a legacy application to identify user interface elements of the legacy application;
analyzing, by the script generation software application, usage of the legacy application to identify a functionality of the legacy application corresponding to a semantic intent, the semantic intent mapping one or more user interface requirements of a non-legacy application to one or more first functions of the legacy application, wherein one or more second functions of the non-legacy application lack at least one one-to-one correspondence with the one or more first functions of the legacy application;
generating, by the script generation software application, virtual user interface elements that comprise the user interface elements of the legacy application, a set of control interfaces for invoking the user interface elements, and wrappers of the user interface elements for exposing the user interface elements for execution;
generating, by the script generation software application, a software map that maps the user interface elements of the legacy application to the functionality of the legacy application; and
generating, by the script generation software application, one or more scripts based at least on the user interface elements as wrapped by the virtual user interface elements and the functionality of the legacy application.

### Claim 18 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein at least one script of the one or more scripts is configured to invoke at least one of the user interface elements by at least one of a journaling hook or an operating system API.

### Claim 19 (depends on 17)

The one or more non-transitory computer-readable media of claim 17, wherein the analyzing of the legacy application to identify the user interface elements comprises performing a static analysis, the static analysis comprising scanning, by the script generation software application, source code of the legacy application to identify one or more user interface element identifiers based on one or more user identifier class types.

### Claim 20 (depends on 19)

The one or more non-transitory computer-readable media of claim 19, wherein the operations comprise receiving, at the script generation software application, a preliminary map data file of potential user interface elements, and wherein the static analysis is based at least on the preliminary map data file.
