A system, method and computer program product are provided for generating
an application. An interaction with a first application is recorded for
capturing a functionality of the first application. An interaction with a
second application is also recorded for capturing a functionality of the
second application. A pattern is generated based on the recorded
interactions. An application is generated based on the pattern. The
interactions recorded in the pattern are repeated upon replay of the
pattern for providing the functionalities of the first and second
applications. A method for executing the pattern-based application is
provided. Upon receiving a request for data, a pattern for retrieving the
requested data is selected. The pattern is replayed. The recorded
interaction is conducted as specified in the pattern for obtaining the
requested data. The requested data is received.