Patent ID: 9632763
Date: 2017-04-25
CPC Classifications: G06F

Claim:
1. A method for generating code for a flow, wherein the method comprises: receiving a flow for an application to be deployed, wherein the flow comprises one or more sub-flows; identifying one or more of the sub-flows of the flow that match a respective one of one or more existing sub-flows that are already running in one or more separate flows by querying a run-time flow information repository; generating code for the flow by (i) generating new code for each respective one of the one or more sub-flows that do not match a respective one of the one or more existing sub-flows that are already running in the one or more separate flows, (ii) generating one or more import/export statements that establish a connection to each respective one of the one or more existing sub-flows that are already running in the one or more separate flows that match a respective one of the, and (iii) inserting a respective one of the one or more generated import/export statements in each of one or more positions in the code that correspond to each respective one of the one or more sub-flows that match a respective one of the one or more existing sub-flows that are already running in the one or more separate flows; annotating one or more components of the generated code that will be active in the run-time for more than a predetermined period of time, wherein said annotating comprises applying an @share annotation to each of the one or more components; specifying one of multiple sharing contexts to be attributed to each of said annotated components; and deploying the generated code for the flow and updating the run-time flow information repository with information pertaining to the flow.