Patent ID: 8423950

Claim:
A method of executing a workflow in a multi-server environment, comprising: obtaining, at a local server, a sequence of tasks to be performed as part of the workflow; analyzing, at the local server, the sequence of tasks to determine if multiple tasks may be performed locally on a first remote server; and upon determining that multiple tasks may be performed locally on the first remote server, generating, at the local server, a first remote service to perform two or more of the tasks on the first remote server, wherein: the remote service includes a call from the first remote server to a second remote server to perform at least one of the sequence of tasks; and data output from at least one of the tasks performed by the second remote server in response to the call is returned to the first remote server; sending the remote service to the first remote server; and executing the workflow, by the local server, with a call to the generated remote service to perform the two or more tasks locally on the first remote server.