This document describes the installation guidelines and the initial configuration activities requires for a new TDM installation or an upgrade of a TDM 7.x version to the current version.
The following components must be installed as a prerequisite:
Click here to open the TDM 7.6 Docker Installation document.
Both TDM layers - backend and frontend - are included in the TDM library from v7.6 onwards.
Import the updated TDM library to Fabric project and deploy it to Fabric. Use the Import All option to import the TDM Portal (self-service) code (stored in the web sub folder) into the TDM LU. The deployment of the TDM LU also deploys the TDM Portal to Fabric and adds it to the web applications in your Fabric web framework.
Click for more information about Fabric Web Framework.
The Redis must run in one of the Fabric nodes. All Fabric nodes must work with the same Redis.
cd $K2_HOME/apps/redis/src
nohup ./redis-server $K2_HOME/apps/redis/redis.conf &
cd $K2_HOME/
It is possible to set a password on Redis. Perform the following steps to add a password to Redis:
Run the following commands on the Fabric node:
./redis-cli
CONFIG SET requirepass <password>
AUTH <password>
The TDM APIDOC html file is located in the TDM folder (imported from the TDM library) in Fabric project:
\TDM\web\TDM\apidoc
The TDM APIDOC describes all the Web Services in the Fabric project including the TDM Web Services imported from the TDM Library.
The below steps should be followed if a new APIDOC is generated to include project custom APIs:
Import the following objects from the updated TDM library:
Edit the TDM_APIDOC_JSON interface or define the TDM_APIDOC directory under C:\k2view\ local directory.
Deploy Fabric project's Web Services to the local debug server.
Edit the buildTdmApiJSON flow: edit the port in the path input parameter of the HttpJson actor.
Run buildTdmApiJSON Broadway flow to create a JSON under the local directory of TDM_APIDOC_JSON interface. Populate the current TDM version in the TDM Version input parameter. For example, TDM 7.6. This version is added to the generated APIDOC.
Open the Swagger editor using the following URL: https://editor.swagger.io/.
In the Swagger Editor:
Open the TDM folder in the Fabric project: right-click the TDM LU > Open Folder. A File Explorer window opens.
Navigate the File Explorer window and move to \TDM\web\TDM\apidoc
sub-directory.
Extract the zip file and copy the generated HTML file under the \TDM\web\TDM\apidoc
sub-directory.
Open the TDM Portal and click the API Doc tab. Verify that the API doc is displayed properly.
TDM 7.6 added a creation of the TDM DB objects by the TDM LU's deploy flow:
Notes:
Soft deploy the TDM LU to Fabric debug server. Before the deploy, verify that the TDM interface is updated with the TDM DB connection details.
Run the RunTDMDBUpgradeScripts flow. Populate the current version and the target version input parameters. Set the target version parameter to 7.6. For example:
Note that the version’s list is set in TDMDBUpgradeScripts actor (imported from the TDM Library).
The k2masking keyspace is needed for a TDM implementation in order to support masking or sequence handling. The k2masking keyspace is automatically created by the the TDM LU's deploy.flow upon the deployment of the TDM LU to Fabric. Alternatively, you can run the masking-create-cache-table.flow from the library of Broadway examples or run the create_masking_cache_table.sql of the TDM Library to create the K2masking keyspace if needed.
Click for more information about sequence handling.
The TDM Portal application is pre-integrated with Fabric Web Framework. The user logs in to the Fabric Web Framework and Fabric authenticates the user. The TDM Portal gets the user id and the user's Fabric roles from the user's session and identifies the user type (Permission Group) by their Fabric roles.
The mapping of each Fabric role to a TDM Permission Group is done by the Permission Groups Mapping TDM window and is kept in permission_groups_mapping TDM DB table.
After installing the TDM, the admin user must log in to the TDM Portal, open the Permission Groups Mapping window and define the Permission Group mapping of each user's group (= Fabric role). This process is done in order to enable the TDM users to work properly on the TDM Portal, based on their Permission Groups.
This document describes the installation guidelines and the initial configuration activities requires for a new TDM installation or an upgrade of a TDM 7.x version to the current version.
The following components must be installed as a prerequisite:
Click here to open the TDM 7.6 Docker Installation document.
Both TDM layers - backend and frontend - are included in the TDM library from v7.6 onwards.
Import the updated TDM library to Fabric project and deploy it to Fabric. Use the Import All option to import the TDM Portal (self-service) code (stored in the web sub folder) into the TDM LU. The deployment of the TDM LU also deploys the TDM Portal to Fabric and adds it to the web applications in your Fabric web framework.
Click for more information about Fabric Web Framework.
The Redis must run in one of the Fabric nodes. All Fabric nodes must work with the same Redis.
cd $K2_HOME/apps/redis/src
nohup ./redis-server $K2_HOME/apps/redis/redis.conf &
cd $K2_HOME/
It is possible to set a password on Redis. Perform the following steps to add a password to Redis:
Run the following commands on the Fabric node:
./redis-cli
CONFIG SET requirepass <password>
AUTH <password>
The TDM APIDOC html file is located in the TDM folder (imported from the TDM library) in Fabric project:
\TDM\web\TDM\apidoc
The TDM APIDOC describes all the Web Services in the Fabric project including the TDM Web Services imported from the TDM Library.
The below steps should be followed if a new APIDOC is generated to include project custom APIs:
Import the following objects from the updated TDM library:
Edit the TDM_APIDOC_JSON interface or define the TDM_APIDOC directory under C:\k2view\ local directory.
Deploy Fabric project's Web Services to the local debug server.
Edit the buildTdmApiJSON flow: edit the port in the path input parameter of the HttpJson actor.
Run buildTdmApiJSON Broadway flow to create a JSON under the local directory of TDM_APIDOC_JSON interface. Populate the current TDM version in the TDM Version input parameter. For example, TDM 7.6. This version is added to the generated APIDOC.
Open the Swagger editor using the following URL: https://editor.swagger.io/.
In the Swagger Editor:
Open the TDM folder in the Fabric project: right-click the TDM LU > Open Folder. A File Explorer window opens.
Navigate the File Explorer window and move to \TDM\web\TDM\apidoc
sub-directory.
Extract the zip file and copy the generated HTML file under the \TDM\web\TDM\apidoc
sub-directory.
Open the TDM Portal and click the API Doc tab. Verify that the API doc is displayed properly.
TDM 7.6 added a creation of the TDM DB objects by the TDM LU's deploy flow:
Notes:
Soft deploy the TDM LU to Fabric debug server. Before the deploy, verify that the TDM interface is updated with the TDM DB connection details.
Run the RunTDMDBUpgradeScripts flow. Populate the current version and the target version input parameters. Set the target version parameter to 7.6. For example:
Note that the version’s list is set in TDMDBUpgradeScripts actor (imported from the TDM Library).
The k2masking keyspace is needed for a TDM implementation in order to support masking or sequence handling. The k2masking keyspace is automatically created by the the TDM LU's deploy.flow upon the deployment of the TDM LU to Fabric. Alternatively, you can run the masking-create-cache-table.flow from the library of Broadway examples or run the create_masking_cache_table.sql of the TDM Library to create the K2masking keyspace if needed.
Click for more information about sequence handling.
The TDM Portal application is pre-integrated with Fabric Web Framework. The user logs in to the Fabric Web Framework and Fabric authenticates the user. The TDM Portal gets the user id and the user's Fabric roles from the user's session and identifies the user type (Permission Group) by their Fabric roles.
The mapping of each Fabric role to a TDM Permission Group is done by the Permission Groups Mapping TDM window and is kept in permission_groups_mapping TDM DB table.
After installing the TDM, the admin user must log in to the TDM Portal, open the Permission Groups Mapping window and define the Permission Group mapping of each user's group (= Fabric role). This process is done in order to enable the TDM users to work properly on the TDM Portal, based on their Permission Groups.