Skip to content

IDGEN Service - sequence number reset and custom format #403

Answered by kavi-egov
atulgupta2024 asked this question in Q&A
Discussion options

You must be logged in to vote

ID Gen supports getting an ID by sending the name or the format. It replaces - boundary-code/city-code, financial year, current year, tenant-id and random text generator by default - https://core.digit.org/platform/core-services/id-generation-service
I would suggest that the utility to replace the legal act code should be written in the respective module and the format has to be updated before or after the ID-Gen call.

A Sequence can only be reset by query, creating a cron job as part of the migration that runs once a year should do it. It can be implemented to look for sequences with certain name formats like SEQ_{RESETYEARLY}_CASE_CODE

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by atulgupta2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants