Code Monkey home page Code Monkey logo

Comments (4)

sfmskywalker avatar sfmskywalker commented on June 26, 2024 1

Yes, thank you.

from elsa-core.

glime-ai avatar glime-ai commented on June 26, 2024

To implement MongoDB as a storage provider for alteration plans and jobs in Elsa Workflows, you would need to create custom implementations of IAlterationJobStore and IAlterationPlanStore interfaces that interact with MongoDB. Additionally, you would need to provide an extension method to configure the AlterationsFeature to use MongoDB for storage.

Here's a high-level overview of the steps you would need to take:

  1. Implement IAlterationJobStore and IAlterationPlanStore with MongoDB:

    • Create classes that implement these interfaces.
    • Use the MongoDB .NET driver to interact with MongoDB collections within these implementations.
  2. Create an Extension Method:

    • Develop an extension method for IServiceCollection that registers your MongoDB store implementations with the DI container.
    • This method should also configure the AlterationsFeature to use these implementations.
  3. Register the Stores:

    • Use the extension method within your application's startup configuration to register the MongoDB stores.
  4. Test the Implementation:

    • Ensure that your MongoDB stores correctly handle CRUD operations for alteration jobs and plans.
    • Verify that alterations are correctly persisted and can be retrieved from MongoDB.
  5. Documentation and Examples:

    • Provide documentation on how to configure and use the MongoDB stores.
    • Include examples that demonstrate the setup and usage.
  6. Considerations for Official Support:

    • If you're looking for official support for MongoDB storage for alterations, consider contributing to the Elsa Workflows project by submitting a pull request with your implementation.
    • Engage with the community and maintainers on GitHub to discuss the potential inclusion of your enhancement in the official Elsa Workflows repository.

Please note that this is a non-trivial enhancement that requires a good understanding of both Elsa Workflows' internals and MongoDB. If you're not familiar with implementing custom storage providers in Elsa, it would be beneficial to review the existing storage provider implementations for guidance.

Would you like more detailed guidance on any of these steps or assistance with a specific part of the implementation?

This comment was generated by Glime.

from elsa-core.

rosca-sabina avatar rosca-sabina commented on June 26, 2024

@sfmskywalker Should this be added to the Elsa 3.2 milestone?

from elsa-core.

rosca-sabina avatar rosca-sabina commented on June 26, 2024

Nice, closing the issue since it was resolved in PRs #5555 and #5564. Thanks!

from elsa-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.