Open Closed

ActivatorChain error while injecting 3rd party Service #2998


User avatar
0
viswajwalith created

ABP Framework version: v5.3 UI type: MVC DB provider: EF Core / MongoDB Tiered (MVC) or Identity Server Separated (Angular): yes Exception message and stack trace: Steps to reproduce the issue:"

When we are trying to inject Elsa(Elsa 1.4) IWorkflowInvoker in AppService/Controller, We are getting error.

We added project references: 'Elsa', 'Elsa.Core' and 'Elsa.Abstractions' in AppService project 'Elsa', 'Elsa.Core' and 'Elsa.Abstractions' in HttpApi project 'Elsa.Persistence.EntityFrameworkCore' in EntityFrameworkCore project 'Elsa.Persistence.MongoDb' in MongoDB Project


8 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please share the full error logs.

    btw we have a demo for Elsa https://github.com/abpframework/abp-samples/tree/master/ElsaDemo

  • User Avatar
    0
    viswajwalith created

    We emailed the log file to liming.ma@volosoft.com

    We are able to inject IWorkflowInvoker in web project and it is working. whenever trying to inject in AppService/Controller, We are getting ActivatorChain error.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi viswajwalith

    Please share a simple project I can check whenever trying to inject in AppService/Controller, We are getting ActivatorChain error.

  • User Avatar
    0
    viswajwalith created

    Dear Maliming

    We emailed the Sample project to malimings@gmail.com

    We can inject IWorkflowInvoker in web project and it is working. whenever trying to inject in Application project, We are getting ActivatorChain error.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Your ConfigureElsa in the MicroServiceDemoWebModule

    and MicroServiceDemoWebModule depends on ProductServiceWebModule that's the way you can inject the IWorkflowInvoker

    but the application doesn't call ConfigureElsa

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please check the dependencies between your modules.

  • User Avatar
    0
    viswajwalith created

    To inject IWorkflowInvoker in Application, which module dependencies need to be added in which modules in sample project. Could you try with the sample project and guide us.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    eg call ConfigureElsa in MyCompanyName.MyProjectName.IdentityService.HttpApi.Host then you can use IWorkflowInvoker in MyCompanyName.MyProjectName.IdentityService.Application

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11