public void ProcessTaskInstance(TaskTypeMappings ttm) { //Validate TaskInstance based on JSON Schema var mapping = ttm.GetMapping(SourceSystemType, TargetSystemType, _TaskMasterJsonSource["Type"].ToString(), _TaskMasterJsonTarget["Type"].ToString(), TaskDatafactoryIR, TaskExecutionType, TaskTypeId); string mapping_schema = mapping.TaskInstanceJsonSchema; if (mapping_schema != null) { _TaskIsValid = Shared.JsonHelpers.ValidateJsonUsingSchema(logging, mapping_schema, this.TaskInstanceJson, "Failed to validate TaskInstance JSON for TaskTypeMapping: " + mapping.MappingName + ". "); } if (_TaskIsValid) { ProcessTaskInstance_Default(); } }
public void ProcessTaskMaster(TaskTypeMappings ttm) { //Validate TaskmasterJson based on JSON Schema var mapping = ttm.GetMapping(SourceSystemType, TargetSystemType, _TaskMasterJsonSource["Type"].ToString(), _TaskMasterJsonTarget["Type"].ToString(), TaskDatafactoryIR, TaskExecutionType, TaskTypeId); string mapping_schema = mapping.TaskMasterJsonSchema; _TaskIsValid = Shared.JsonHelpers.ValidateJsonUsingSchema(logging, mapping_schema, this.TaskMasterJson, "Failed to validate TaskMaster JSON for TaskTypeMapping: " + mapping.MappingName + ". "); if (_TaskIsValid) { if (TaskType == "SQL Database to Azure Storage") { ProcessTaskMaster_Mapping_XX_SQL_AZ_Storage_Parquet(); goto ProcessTaskMasterEnd; } if (TaskType == "Execute SQL Statement") { ProcessTaskMaster_Mapping_AZ_SQL_StoredProcedure(); goto ProcessTaskMasterEnd; } if (TaskType == "Azure Storage to SQL Database") { ProcessTaskMaster_Default(); goto ProcessTaskMasterEnd; } //Default Processing Branch { ProcessTaskMaster_Default(); goto ProcessTaskMasterEnd; } ProcessTaskMasterEnd: logging.LogInformation("ProcessTaskMasterJson Finished"); } }