Comments (4)
Yes, thank you.
from elsa-core.
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:
-
Implement
IAlterationJobStore
andIAlterationPlanStore
with MongoDB:- Create classes that implement these interfaces.
- Use the MongoDB .NET driver to interact with MongoDB collections within these implementations.
-
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.
- Develop an extension method for
-
Register the Stores:
- Use the extension method within your application's startup configuration to register the MongoDB stores.
-
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.
-
Documentation and Examples:
- Provide documentation on how to configure and use the MongoDB stores.
- Include examples that demonstrate the setup and usage.
-
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.
@sfmskywalker Should this be added to the Elsa 3.2 milestone?
from elsa-core.
Nice, closing the issue since it was resolved in PRs #5555 and #5564. Thanks!
from elsa-core.
Related Issues (20)
- [BUG] Workflow Import ID Discrepancy HOT 2
- [BUG] How activity retrieve variable within published workflow HOT 1
- [CHORE] Elsa 3.0在设计器中如何使用Switch(flow)? HOT 1
- [BUG] Restore variables values after resume from a bookmark. HOT 4
- [BUG]curl 如何调用在Elsa 3.0设计器中的创建的工作流? HOT 1
- Expired messages in Workflow Inbox should be ignored HOT 2
- [BUG] There is a BUG when Api project cooperates with swagger. HOT 1
- [ENH] Readonly Workflow Variables HOT 1
- [BUG] Issues with POST and GET Execute APIs HOT 1
- [FEAT] Postgresql adapter for Hangfire
- [ENH] Optimize Workflow Import by Storing Raw JSON to Avoid Unnecessary Serialization
- [ENH] Enable and Disable MassTransit Consumers HOT 1
- Third-Party Integration Activities HOT 1
- [CHORE] Configure CI/CD with Renovate Bot HOT 1
- Make `Newtonsoft.Json` private? HOT 1
- What is the best place to implement clean-up logic for ActivityExecutionContext HOT 1
- ELSA 3.1.3 Getting Error when i call get /workflow-definitions endpoint HOT 2
- [BUG] MassTransit DisableConsumers Fails to Properly Disable Consumers and Disables Necessary Consumers HOT 1
- [CHORE] Elsa 3.0 设计器中 Fork的属性Branches如何设置? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.