diff --git a/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs b/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs index b076eb8e5f..d99915f9ac 100644 --- a/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs +++ b/src/framework/Framework.Processes.Library/DBAccess/IProcessCreation.cs @@ -22,7 +22,7 @@ namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess; -public interface IProcessCreation +public interface IProcessCreation where TProcessType : class, IProcess, IProcessNavigation where TProcessStepType : class, IProcessStep, IProcessStepNavigation where TProcessTypeId : struct, IConvertible diff --git a/src/framework/Framework.Processes.Worker.Library/ProcessExecutionServiceExtensions.cs b/src/framework/Framework.Processes.Worker.Library/ProcessExecutionServiceExtensions.cs index c8d9ba1ea0..e2966abdb8 100644 --- a/src/framework/Framework.Processes.Worker.Library/ProcessExecutionServiceExtensions.cs +++ b/src/framework/Framework.Processes.Worker.Library/ProcessExecutionServiceExtensions.cs @@ -26,7 +26,7 @@ namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Worker.Library public static class ProcessExecutionServiceExtensions { - public static IServiceCollection AddProcessExecutionService(this IServiceCollection services, IConfigurationSection section) + public static IServiceCollection AddProcessExecutionService(this IServiceCollection services, IConfigurationSection section) where TProcessTypeId : struct, IConvertible where TProcessStepTypeId : struct, IConvertible { diff --git a/src/processes/Processes.Worker/Program.cs b/src/processes/Processes.Worker/Program.cs index 9e82ea3f95..5fe76cd1d9 100644 --- a/src/processes/Processes.Worker/Program.cs +++ b/src/processes/Processes.Worker/Program.cs @@ -26,6 +26,7 @@ using Org.Eclipse.TractusX.Portal.Backend.Framework.Logging; using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.DBAccess; using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities; +using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess; using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Worker.Library; using Org.Eclipse.TractusX.Portal.Backend.Keycloak.ErrorHandling; using Org.Eclipse.TractusX.Portal.Backend.Keycloak.Factory; @@ -59,7 +60,7 @@ services .AddMailingAndTemplateManager(hostContext.Configuration) .AddScoped>() - .AddProcessExecutionService, ProcessStep, ProcessTypeId, ProcessStepTypeId>(hostContext.Configuration.GetSection("Processes")) + .AddProcessExecutionService(hostContext.Configuration.GetSection("Processes")) .AddTransient, ApplicationChecklistProcessTypeExecutor>() .AddOfferSubscriptionProcessExecutor(hostContext.Configuration) .AddTechnicalUserProfile()