Configure Enterprise Service for Export
Enterprise Service
- Go to the UBIK.EnterpriseService folder,
- Copy and paste UBIK.Interface.CUI.dll to the “Injection” folder (create it if it does not exist).
- Open UBIK.EnterpriseService.exe.config, find the “appSettings” section, configure all necessary information, and add the "ContentControllerConfigPath" setting to the end:
<appSettings>
<!-- System.Diagnostics.ProcessWindowStyle: Normal = 0, Hidden = 1, Minimized = 2, Maximized = 3 -->
<add key="ConsoleRunMode" value="1" />
<!-- Nothing = 0, Mark = 1, Delete = 2 -->
<add key="CommandFileAction" value="0" />
<add key="ClearWatchFolders" value="0" />
<!-- Path to json file. Pointing to EnterpriseServicePluginExecutionConfigHolder -->
<add key="PluginExecutionConfigPath" value="your\setting\path\CUIExportOrchestrator.json" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<!--TEST IF ONLINE USING BROWSER // GET http://localhost:9000/api/basicenterpriseservice/getuptimeinfo-->
<!-- switch on WebInterface: 1, switch off WebInterface : 0 -->
<add key="ExecuteWebInterface" value="0" />
<add key="ExecuteTaskByJsonFile" value="1" />
<!-- Notification Endpoint config ProcessUrl -->
<add key="WebInterfacePort" value="9200" />
<add key="WebInterfaceHost" value="http://localhost" />
<!-- Add this to the ES config file -->
<add key="ContentControllerConfigPath" value="" />
</appSettings>
<!-- System.Diagnostics.ProcessWindowStyle: Normal = 0, Hidden = 1, Minimized = 2, Maximized = 3 -->
<add key="ConsoleRunMode" value="1" />
<!-- Nothing = 0, Mark = 1, Delete = 2 -->
<add key="CommandFileAction" value="0" />
<add key="ClearWatchFolders" value="0" />
<!-- Path to json file. Pointing to EnterpriseServicePluginExecutionConfigHolder -->
<add key="PluginExecutionConfigPath" value="your\setting\path\CUIExportOrchestrator.json" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<!--TEST IF ONLINE USING BROWSER // GET http://localhost:9000/api/basicenterpriseservice/getuptimeinfo-->
<!-- switch on WebInterface: 1, switch off WebInterface : 0 -->
<add key="ExecuteWebInterface" value="0" />
<add key="ExecuteTaskByJsonFile" value="1" />
<!-- Notification Endpoint config ProcessUrl -->
<add key="WebInterfacePort" value="9200" />
<add key="WebInterfaceHost" value="http://localhost" />
<!-- Add this to the ES config file -->
<add key="ContentControllerConfigPath" value="" />
</appSettings>
Make sure CUIExportOrchestrator.json exists.
- Create or adapt CUIExportOrchestrator.json according to your database connection:
{
"RepeateEveryMinutes": 10,
"SqlConnectionDefinition":
{
"SSPI": false,
"SQLUser": "....",
"SQLPassword": "....",
"SQLServer": "....,
"SQLInitialCatalog": "...."
},
"Tasks":
[
{
"ClassFullname": "UBIK.CUI.Orchestration.BatchWriteOrchestrator",
"MethodName": "Apply",
"MethodParameterPathFullName": "my_params.json",
}
]
}
"RepeateEveryMinutes": 10,
"SqlConnectionDefinition":
{
"SSPI": false,
"SQLUser": "....",
"SQLPassword": "....",
"SQLServer": "....,
"SQLInitialCatalog": "...."
},
"Tasks":
[
{
"ClassFullname": "UBIK.CUI.Orchestration.BatchWriteOrchestrator",
"MethodName": "Apply",
"MethodParameterPathFullName": "my_params.json",
}
]
}
- Example:
- "SQLUser": "aaa"
- "SQLPassoword": "bbb"
- "SQLServer": "(localdb)\ProjectModels"
- "SQLInitialCatalog": "TEMPLATE.LOCAL"
Pay attention on JSON escape with ' \" ', ' \\ '
