Base solution for your next web application
Open Closed

Elsa integration #12128


User avatar
0
[email protected] created

Hi @ismcagdas

We are using Asp.net Zero V 13.3.0 with.NET Core and Angular.

we have installed below NuGet package.

but getting this error after run application.

How can we solve this issue? Can you please check this issue as soon as possible, and can you help us integrate Elsa?

Note: - Only NuGet package. Install on the host project and execute the application without any modifications at startup.cs

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

41 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi cyber50.ae

    Your project has reached us, after performing the normal installation on the server side, the node modules packages have been installed on the Angular side. When we run the project, the problem you mentioned in the screenshot below does not occur. Here, I will ask you to perform the package installation again after deleting the node_modules file and the package lock files.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi @oguzhanagir,

    Getting same issue on Backend run

    please check I already sent solution.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi @oguzhanagir,

    Getting same issue on Backend run

    please check I already sent solution.

    Any update. please help

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi, I followed the Elsa integration documentation. But same issue

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi cyber50.ae

    Your project has reached us, after performing the normal installation on the server side, the node modules packages have been installed on the Angular side. When we run the project, the problem you mentioned in the screenshot below does not occur. Here, I will ask you to perform the package installation again after deleting the node_modules file and the package lock files.

    ![Screenshot 2024-08-27 094805.png](/QA/files/81be4f87040ff5eab3003a14a4c4d

    could you please check AspNet core Solution. because i get error

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi

    After removing the SwaggerDocumentFilter included under services.AddSwaggerGen, you need to add a new class as shown below.

    Create a static class named SwaggerConfigExtensions.cs

    using Microsoft.Extensions.DependencyInjection;
    using Swashbuckle.AspNetCore.SwaggerGen;
    
    namespace Intelly.Web.Swagger
    {
        public static class SwaggerConfigExtensions
        {
            public static void AddSwaggerRouteFilter(this SwaggerGenOptions options)
            {
                options.DocInclusionPredicate((docName, apiDesc) =>
                {
                    var routeTemplate = apiDesc.RelativePath;
    
                    if (routeTemplate == "workflow-definitions")
                        return false;
                    else if (routeTemplate.Contains("workflow-definitions/import-files"))
                        return false;
                    else if (routeTemplate.Contains("workflow-instances"))
                        return false;
                    else if (routeTemplate.Contains("workflow-registry"))
                        return false;
                    else if (routeTemplate.Contains("workflows"))
                        return false;
                    else if (routeTemplate.Contains("v{apiVersion}"))
                        return false;
                    else if (routeTemplate.Contains("v{version}"))
                        return false;
    
                    return true;
                });
            }
        }
    }
    

    After creating this class, change the DocInclusionPredicate method that was added before like this:

    Before

    //
    options.DocInclusionPredicate((docName, description) => true);
    //
    

    After

    //
    options.AddSwaggerRouteFilter();
    //
    

    After making these changes, you will be able to access the Swagger UI screen without any problems.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi

    After removing the SwaggerDocumentFilter included under services.AddSwaggerGen, you need to add a new class as shown below.

    Create a static class named SwaggerConfigExtensions.cs

    using Microsoft.Extensions.DependencyInjection; 
    using Swashbuckle.AspNetCore.SwaggerGen; 
     
    namespace Intelly.Web.Swagger 
    { 
        public static class SwaggerConfigExtensions 
        { 
            public static void AddSwaggerRouteFilter(this SwaggerGenOptions options) 
            { 
                options.DocInclusionPredicate((docName, apiDesc) => 
                { 
                    var routeTemplate = apiDesc.RelativePath; 
     
                    if (routeTemplate == "workflow-definitions") 
                        return false; 
                    else if (routeTemplate.Contains("workflow-definitions/import-files")) 
                        return false; 
                    else if (routeTemplate.Contains("workflow-instances")) 
                        return false; 
                    else if (routeTemplate.Contains("workflow-registry")) 
                        return false; 
                    else if (routeTemplate.Contains("workflows")) 
                        return false; 
                    else if (routeTemplate.Contains("v{apiVersion}")) 
                        return false; 
                    else if (routeTemplate.Contains("v{version}")) 
                        return false; 
     
                    return true; 
                }); 
            } 
        } 
    } 
    

    After creating this class, change the DocInclusionPredicate method that was added before like this:

    Before

    // 
    options.DocInclusionPredicate((docName, description) => true); 
    // 
    

    After

    // 
    options.AddSwaggerRouteFilter(); 
    // 
    

    After making these changes, you will be able to access the Swagger UI screen without any problems.

    Thank you so much. but We want to make WorkFlowDefinitions to be multi-tenant.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi @oguzhanagir ,

    We want to make WorkFlowDefinitions to be multi-tenant. please update as soon as.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi @oguzhanagir,

    any update?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Couldn't understand your request. As you can see, this table already contains TenantId field.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi cyber50.ae

    This ELSA issue (https://github.com/elsa-workflows/elsa-core/issues/2462) may help you

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi,

    Couldn't understand your request. As you can see, this table already contains TenantId field.

    I logged in as a tenant and created a workflow. The record has inserted into the WorkFlowDefinitions SQL table. but the Tenant ID was missing; no value was inserted for Tenant ID. How can I solve this issue?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi,

    Couldn't understand your request. As you can see, this table already contains TenantId field.

    I logged in as a tenant and created a workflow. The record has inserted into the WorkFlowDefinitions SQL table. but the Tenant ID was missing; no value was inserted for Tenant ID. How can I solve this issue?

    Hi @oguzhanagir , any update?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi

    Here you can get the information of the logged in user from the session and make custom changes in the base service that adds to the WorkFlowDefinitions table.

    The comments in this issue (https://github.com/elsa-workflows/elsa-core/issues/2462) will help you.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    [email protected] created

    Hi

    Here you can get the information of the logged in user from the session and make custom changes in the base service that adds to the WorkFlowDefinitions table.

    The comments in this issue (https://github.com/elsa-workflows/elsa-core/issues/2462) will help you.

    hi @oguzhanagir, not working our side, any other way.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi

    We won't be able to assist with this matter. It would be more appropriate to communicate your request to the ELSA developers.

    Thank you. Best regards

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)