US 12,106,081 B1
Uploading tenant code to a multi-tenant system
Adam P. L. McMillan, Dublin, CA (US); Min Su, Dublin, CA (US); Patrick Ota, San Jose, CA (US); Shu-Shang Sam Wei, Danville, CA (US); and Roeland Singer-Heinze, Dublin, CA (US)
Assigned to Veeva Systems Inc., Pleasanton, CA (US)
Filed by Veeva Systems Inc., Pleasanton, CA (US)
Filed on Jan. 24, 2020, as Appl. No. 16/752,497.
Int. Cl. G06F 8/60 (2018.01); G06F 16/16 (2019.01)
CPC G06F 8/60 (2013.01) [G06F 16/16 (2019.01)] 12 Claims
OG exemplary drawing
 
1. A computer-implemented method for uploading tenant code to a multi-tenant system to share document data, comprising:
enabling display of a first interface for receiving tenant code, wherein the tenant code is Java source code developed by a tenant of the multi-tenant system and can run on a Java platform provided by the multi-tenant system, and wherein the first interface comprises an area for receiving the tenant code;
receiving a metadata definition language (“MDL”) representation of the tenant code from a computing device over a network;
storing the tenant code as source code metadata in a first repository of the multi-tenant system;
registering the tenant code with a tenant code registry of the multi-tenant system;
receiving a request for the tenant code from a server of the multi-tenant system when there is a predetermined event;
extracting the tenant code from the source code metadata for execution;
executing the tenant code to create, in a second repository of the multi-tenant system, a temporary copy of a source document in the first repository of the multi-tenant system, with information of the source document transferred from the first repository of the multi-tenant system to the second repository; and
displaying the temporary copy of the source document before copying the source document from the first repository to the second repository.