Multi-Tenancy: Creating a Hosting DefinitionLast Updated: 01/16/2019 Introduced in Version:
This document shows how to create a Hosting Definition for your multi-tenant environment. Before a Hosting Definition can be created first set up a multi-tenant environment and register a customer. Please see the links at the bottom of the document if these are not set up.
Add a Database: First Copy the Connection String that will be used in the new Database.
To copy the Database Connection String, start by navigatinging to Systems> Integrations>Databases and select Local Connection. On the right side of the Folder, view all of the connection data (Figure 3). Locate “Connection String” and copy the bolded string following the label (Figure 1). Copy and paste the connection string in the new Database settings displayed in (Figure 3).
Next, navigate to the Databases folder under Hosting> Customers> Databases in the designer Folders. Select Add Database from the blue action panel located at the bottom of the Folder view (Figure 2).
Copy the Connection String for the local database connection and Paste the Connection String in the Database Connection String field. Select OK to save and continue (Figure 3).
Setup Customer Configuration
Now that the Database configuration has been set, its time to Add the configuration to the Registered Customer. Locate the Customers folder under Hosting and right click on the Registered Customer. The image below shows Test Company located under Customers, right click on Test Company and select Add Configuration (Figure 4).
Set the Configuration name, choose the Hosting Type and Select the Database Connection (Figure 5). Select continue to save the database connection to your Registered Customer (Figure 5).
- Configuration Name: The Configuration name can be any given name.
- Type Hosting: Choose the Hosting environment, in this case, choose (Decisions (shared) Multi-Tenancy.
- Select Database Connection: Here select the newly created Database.
This step completes the set up of a new Hosting Definition. The Hosting Definition is now registered to the customer (Test Company). Next set up a Prototype Instance in Decisions.