Jump to: navigation, search

BatchWriteOrchestrator


BatchWriteOrchestrator is an orchestrator which can be configured to be executed on the UBIK Enterprise Service e.g. using PluginExecutionConfigPath. for UBIK Studio Version 4.7 and higher, it has to posible calls "UBIK.CUI.Orchestration.BatchWriteOrchestrator" for a Single InterfaceAdminObject and "UBIK.CUI.Orchestration.MutliBatchWriteOrchestrator" for a tree of InterfaceAdminObjects

Offten Named as "CUIExportOrchestrator.json" and mentioned as "PluginExecutionConfigPath" in the "UBIK.EnterpriseService.exe.config" file

{
        "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.MutliBatchWriteOrchestrator",
                   "
MethodName": "Apply",
                   "
MethodParameterPathFullName": "my_params.json",    
                }
        ]  
 }

You have to configure parameters via the method parameter file:

    public class ServiceParameter
    {
        public Guid? RegistrationInterfaceAdmin{ get; set; }

        public Guid[]? Proxies{ get; }

        public Guid? RestAPIInterfaceAdmin{ get; set; }
    }

the file "my_params.json" used as "MethodParameterPathFullName" will be looking like this example

{
        "RegistrationInterfaceAdmin": null,
        "Proxies": null,
        "RestAPIInterfaceAdmin": "e09bfeca-18e1-45e5-a605-038912882c2d"
}
Property Description
RegistrationInterfaceAdmin Interface Admin witch was uesd to Import from xml file
Proxies ["GUID","GUID","GUID","GUID"] Array of GUID for Proxies that should be exportet
RestAPIInterfaceAdmin GUID of Interface Admin Object that is relatet to the Proxies or the hirarchical owner of many Admin Objects for MultiBatch