Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make State Machine Mongo Collection Name (MongoDbRepositoryStateMachine) Configurable #1127

Open
chinthakadd opened this issue Dec 4, 2023 · 2 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@chinthakadd
Copy link

It seems that MongoDbRepositoryStateMachine Document Entity has a hard-coded collection name. This makes it difficult for consumers who has different collection naming conventions to make it configurable.

Can we provide SPEL/ Spring Configuration or Java Config based support to override the default collection names?

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Dec 4, 2023
@ZhongceXie
Copy link

use case: since I created two state machines (order and transaction) in the same spring package, I think it's reasonable to store two state machines under the same DB with different collection names.

correct me if there is a better way to implement under such scenario.

@chinthakadd
Copy link
Author

@ZhongceXie thank you for the comment. Yes that is a valid use-case IMO. In our case, our organization follows a standard convention of naming collection which differs from the MongoDbRepositoryStateMachine style naming. So we would like to have the flexibility to customize the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

2 participants