Importing and Exporting Transaction Files
Using Integration Manager, you can perform imports and exports of device transaction files in Device Manager. You can export a log of all the transactions that are collected from the device. The exported transactions from one log file are tagged to prevent the same transaction from being exported twice.
Notes about the import and export processes:
- Using Event Manager, schedule data recovery backups for every 15 minutes. If you are using a test system, schedule your data recovery for once a day.
- If you are exporting transaction files, device transactions for a specified device or device group are exported to a mapped folder.
- If you are importing transaction files, the transactions from a file in the mapped export folder are imported into Device Manager and processed in the same way as transactions coming from a device.
The following tasks can be performed using the .KNX files found on the Product DVD located at Service/Transaction_Access:
- Import_DevTrx_By_FileName.KNX — Use the Import From XML File Link to import device transactions.
- Export_DevTrx_By_DeviceNum.KNX — Use the Export By Device ID Link to export device transactions from a specific device.
- Export_DevTrx_By_GroupName.KNX — Use the Export By Device Group Link to export device transactions from a device group.
Important: After you install Interface Designer, create a directory for mapped folders:
C:\kronos\interfacedesigner\Transaction_Access\<filename>
Detailed documentation of these processes is delivered as part of the Device Manager application, along with the links. You can refer to the following manuals for Integration Manager.
Performing import and export of device transactions
Prepare to import and export device transactions:
Configure Integration Manager and Interface Designer for use with Device Manager
Perform these steps in Setup > Data Integration.
Set up the Mapped Folder and Connections: Integration Manager uses Mapped Folders as a reference in links to a particular folder that is configured on the server. All text files that are referenced by Integration Manager must be placed in a mapped folder.
-
Mapped folder setup
- Select Mapped Folders
- Click New
- Enter the Name. For example, DevMgrFiles.
- Enter the Path. For example: C:\Kronos\InterfaceDesigner\Transaction_Access\DevMgrFiles
- Click Test
- Ensure that the message “The folder” <path> “has write access” is returned
- Click Save and Return
-
Connection Setup:
- Select Connections
- Click New
- Select the type “wfc XML API”
- Enter the Name “API Connection”
- Enter the description: API Connection used for Device Manager Interfaces
- Enter the Server Name (Example: kvm-us-yourname)
- Enter the Instance Name. Note: The instance name is case sensitive and is a user name to log into the application, not the database.
- Enter the Password associated with the username
- Click Test
- Ensure that the message “Successful” is returned
- Click Save and Return
Configure and deploy the .KNX files
Navigate to the Windows directory where the KNX files are located. For Example: C:\kronos\interfacedesigner\Transaction_Access\DevMgrFiles.Double-click the link to open the file in Interface Designer.
Configure the appropriate settings on the Source tab, Output tab, and Functions & Variables tab:
-
Click the Source tab
- Select the "UKG Workforce Central XML API" Connection.
- Verify the database version is correct or select the correct one from the list.
-
Click the Output tab
- Select the mapped folder that was set up earlier (DevMgrFiles).
-
Click the Functions & Variables tab
- Double click the ‘Action’ column on the variable :groupName or :DeviceNum
- Select ‘Static text’ and OK
- Enter the Group name or Device Num desired, Click OK and SAVE link
-
Create the corresponding interface
- Click the Make Interface button and a new KNI file will be created
- Click on the General tab and in the Interface Name box give the interface a short descriptive name (This is the Interface Name that will display on the Data Integration interface list).
- Save the Interface
-
Deploy interface from Interface Designer to Integration Manager
- The results of the run will be posted in the instance Data Integration Results tab.
- The file: “exported_<:groupName>_<:dateTime>.xml will be created in the mapped folder.
- This file will be used as the source for the next link Import_DevTrx_By_FileName.KNX
- Run the interface.