# US 2022/0291977 A1 · Single flow execution

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

- Number: US 2022/0291977 A1
- Document ID: US20220291977A1
- Status: Published application
- Kind: A1
- Application number: 17/200,425
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Federico Ariel Piagentini; Guillermo Sebastian Fernandes; Pablo Gerardo Kraan Brun; Rodrigo Ezequiel Merino
- Web page: https://patentgrep.com/patent/US20220291977A1

## CPC

- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 8/60: Software deployment
- G06F 9/451: Execution arrangements for user interfaces
- G06F 21/16: Program or content traceability, e.g. by watermarking
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and devices supporting data processing are described. In some systems, a user device may leverage a single flow execution (SFE) service for an application including a flow. A connector may retrieve one or more messages using a polling source, and a processing component may process a single message of the retrieved messages (e.g., to avoid processing complexity and error propagation associated with batch or periodic polling). The processing component may disable the connector upon retrieving at least one message and may execute the flow for the deployed application on the single message of the retrieved message, for example, based on an indication to run the SFE. Upon completion of executing the flow on the message, the processing component may store, at a collector, information related to the flow execution and may undeploy the application from a runtime engine instance based on completing the SFE for the application.

## Claims

### Claim 1

A method for single flow execution, comprising:
receiving an indication to run a single flow execution for an application comprising one or more components, one or more connectors, one or more modules, or a combination thereof organized into a flow;
deploying the application into a runtime engine instance in response to the indication to run the single flow execution;
retrieving, using a polling source, one or more messages from an external source via a connector based at least in part on a polling trigger for the deployed application;
disabling the connector to the external source based at least in part on retrieving the one or more messages;
executing the flow for the deployed application on a single message of the one or more messages based at least in part on the indication to run the single flow execution; and
undeploying the application from the runtime engine instance based at least in part on a completion of executing the flow for the deployed application on the single message.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
storing, at a collector, information related to the completion of executing the flow for the deployed application on the single message, wherein the application is undeployed subsequent to storing the information at the collector.

### Claim 3 (depends on 2)

The method of claim 2, wherein the information comprises transaction data resulting from executing the flow, one or more log messages generated from executing the flow, or both.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
sending, for display at a user interface of a user device, the information related to the completion of executing the flow for the deployed application on the single message.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
receiving, from a user interface of a user device, a first user input indicating a definition for the application, a second user input comprising the indication to run the single flow execution for the application, or both.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
updating a watermark to indicate that the single message was processed by the flow for the deployed application based at least in part on the completion of executing the flow for the deployed application on the single message.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
persisting the watermark external to the runtime engine instance.

### Claim 8 (depends on 6)

The method of claim 6, wherein the one or more messages are retrieved from the external source based at least in part on a current value of the watermark.

### Claim 9 (depends on 6)

The method of claim 6, wherein the watermark comprises a timestamp, an incremental value, or both.

### Claim 10 (depends on 1)

The method of claim 1, wherein the polling trigger comprises a frequency, the method further comprising:
executing the polling source according to the frequency, wherein executing the polling source comprises:
connecting to the external source via the connector; and
querying new data from the external source, wherein the one or more messages are retrieved in response to the querying.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the polling source tracks a watermark for the external source; and
the querying the new data comprises querying for data stored at the external source subsequent to the watermark for the external source.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
stopping the application based at least in part on executing the flow for the deployed application on the single message; and
releasing the runtime engine instance based at least in part on undeploying the application from the runtime engine instance.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
detecting, at a plugin, the completion of executing the flow for the deployed application on the single message; and
invoking, using the plugin, an application service, wherein the application is undeployed from the runtime engine instance based at least in part on invoking the application service.

### Claim 14 (depends on 1)

The method of claim 1, wherein executing the flow for the deployed application on the single message comprises:
generating an event comprising the single message and metadata associated with the event;
modifying the event based at least in part on the one or more components and a logical order of the flow; and
determining a result of the completion of executing the flow for the deployed application on the single message based at least in part on the modified event.

### Claim 15 (depends on 1)

The method of claim 1, wherein the indication to run the single flow execution for the application is received at an orchestrator, the method further comprising:
sending, by the orchestrator, the application and an indication of the single flow execution to a cluster controller;
selecting, by the cluster controller, the runtime engine instance from a cluster of runtime engine instances; and
calling, by the cluster controller, one or more endpoints to execute the single flow execution, wherein the application is deployed to the selected runtime engine instance based at least in part on calling the one or more endpoints.

### Claim 16 (depends on 1)

The method of claim 1, wherein the completion of executing the flow for the deployed application on the single message comprises the single message completing processing by each component of the one or more components of the flow, the single message completing processing by each component of a sub-flow of the flow based at least in part on a logical order of the flow, the executing the flow for the deployed application on the single message resulting in an execution failure, a time duration for executing the flow for the deployed application on the single message satisfying a timeout criterion, receiving a user request to stop executing the flow for the deployed application on the single message, or a combination thereof.

### Claim 17 (depends on 1)

The method of claim 1, wherein the single message comprises a single data object, a single email message, a single short message service (SMS) text message, a single voice call, or a single document.

### Claim 18

An apparatus for single flow execution, comprising:
a processor;
memory coupled with the processor; and
instructions stored in the memory and executable by the processor to cause the apparatus to:
receive an indication to run a single flow execution for an application comprising one or more components, one or more connectors, one or more modules, or a combination thereof organized into a flow;
deploy the application into a runtime engine instance in response to the indication to run the single flow execution;
retrieve, using a polling source, one or more messages from an external source via a connector based at least in part on a polling trigger for the deployed application;
disable the connector to the external source based at least in part on retrieving the one or more messages;
execute the flow for the deployed application on a single message of the one or more messages based at least in part on the indication to run the single flow execution; and
undeploy the application from the runtime engine instance based at least in part on a completion of executing the flow for the deployed application on the single message.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the instructions are further executable by the processor to cause the apparatus to:
store, at a collector, information related to the completion of executing the flow for the deployed application on the single message, wherein the application is undeployed subsequent to storing the information at the collector.

### Claim 20

A non-transitory computer-readable medium storing code for single flow execution, the code comprising instructions executable by a processor to:
receive an indication to run a single flow execution for an application comprising one or more components, one or more connectors, one or more modules, or a combination thereof organized into a flow;
deploy the application into a runtime engine instance in response to the indication to run the single flow execution;
retrieve, using a polling source, one or more messages from an external source via a connector based at least in part on a polling trigger for the deployed application;
disable the connector to the external source based at least in part on retrieving the one or more messages;
execute the flow for the deployed application on a single message of the one or more messages based at least in part on the indication to run the single flow execution; and
undeploy the application from the runtime engine instance based at least in part on a completion of executing the flow for the deployed application on the single message.
