Engineering Requirements Management

 View Only
Expand all | Collapse all

Is There Any Way to Reclaim Purged/Discarded Object IDs?

  • 1.  Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Thu May 02, 2024 12:30 PM

    Is there any way to recover object IDs for objects that were previously purged or added to the module and discarded without saving? New objects in RCRs indicate that this functionality exist as when you re-enter the same RCR, the same object IDs are re-inserted back into the module. Thanks in advance!



    ------------------------------
    Ian Sajkowicz
    ------------------------------


  • 2.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Fri May 03, 2024 03:09 AM

    No there is no way to re-use absolute number of purged/discarded objects.

    Doing that would  lead to duplicate absolute number and that is something we really want to avoid...



    ------------------------------
    ROMAIN BARTH
    ------------------------------



  • 3.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Fri May 03, 2024 11:31 AM

    The only way - but i asume that is not your use case - would be to recover the folder of the module from backup on the DOORS Server, which would reset the module content and the IDs to a prior state.



    ------------------------------
    Nikolai Stein
    General Manager
    REQUISIS GmbH
    Berlin
    +49-30-536506-711
    ------------------------------



  • 4.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Mon May 06, 2024 07:48 AM

    Hey Nikolai, thanks for suggesting this solution.

    I was programmatically deleting and purging object IDs ("reserving") them using DXL and wanted to later make them available again for use via DXL.

    Not sure if you know if this would be possible! Still, though, thanks for the suggestion!



    ------------------------------
    Ian Sajkowicz
    ------------------------------



  • 5.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Tue May 07, 2024 03:53 AM

    I am pretty sure that is not possible.

    Me and my team have been programming DXL since nearly 20 years and never stumpled over such a function.

    What you could do is to create and soft delete the objects so you would be able to reuse them by undeleting and moving them to the desired place.

    Maybe that covers your use case. 

    If you beleave that RCR uses a hidden function, you could decrypt the functions and have a look into it.



    ------------------------------
    Nikolai Stein
    General Manager
    REQUISIS GmbH
    Berlin
    +49-30-536506-711
    ------------------------------



  • 6.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Wed May 08, 2024 07:56 AM

    Thanks for this additional suggestion Nikolai.

    Unfortunately, we can't rely on soft-deleting objects since a user would be able to undo that action ie undelete the object thereby interrupting the workflow that was setup with reserving object IDs.

    RCRs appear to "reserve" object IDs in the way I would want my workflow to operate. Each RCR stores object IDs for objects created within it. When you open a module in read only mode you won't see the objects, but when you open the same RCR, the module populates with those objects with the same object IDs that were originally associated with the RCR even if the module's next assigned object ID would be higher than what was recorded.

    I'll review the RCR code further to see what can be done.



    ------------------------------
    Ian Sajkowicz
    ------------------------------



  • 7.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Thu May 09, 2024 02:45 AM

    Hi Ian,

    Just in case it helps you solve that problem. If you remove the "Delete" permissions from a user in the module, that user will not be able to purge or undelete. Maybe taking that into account you will not have problems with the workflow you have created.



    ------------------------------
    Juan Fernández
    Process Consultant
    Itera Process
    +34 673 609 498
    ------------------------------



  • 8.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Thu May 09, 2024 08:21 AM

    Hi Juan, thanks for the suggestion, but I can't remove delete permissions because we still want users to delete regular objects.

    It's definitely a tricky situation!



    ------------------------------
    Ian Sajkowicz
    ------------------------------



  • 9.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Fri May 10, 2024 09:49 AM

    Hi Ian,

    As far as I know is impossible to do what you want. If the object is purged, you cannot recover it, unless you recover a backup, what can be a headache

    Otherwise, you can use a new ID attribute, somethig like "Id Object" that you can configure with DXL and set value you want when is created.

    For me, the best option is from @Juan Fernández You could set up the permisions to avoid deletions and use the typical atribute Object Status to show if the attribute is deleted or not



    ------------------------------
    Jorge Garcia
    ------------------------------



  • 10.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Mon May 13, 2024 04:37 AM
    Edited by Corinne Bacle Mon May 13, 2024 04:37 AM

    Hi Ian,

    If you mix a soft deletion and a restricted read access on the object , I think you can achieve what you want to do.



    ------------------------------
    Corinne Bacle
    IBM
    ------------------------------



  • 11.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Mon May 13, 2024 07:15 PM

    Hi Corinne, thanks for the suggestion! It certainly sounds feasible although the issue is with these "Read locked data" objects erroring out with the existing scripts that we made i.e. these objects would error out when attempting to loop through object's absolute number in a module.

    Still, though, appreciate the idea!



    ------------------------------
    Ian Sajkowicz
    ------------------------------



  • 12.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Mon May 13, 2024 07:16 PM

    Hi Jorge, unfortunately we need to use object IDs, so we're stuck!

    Good idea with the "Object Status" attribute.

    Still, thanks for the suggestion!



    ------------------------------
    Ian Sajkowicz
    ------------------------------



  • 13.  RE: Is There Any Way to Reclaim Purged/Discarded Object IDs?

    Posted Fri May 03, 2024 01:32 PM

    Hi Romain, thanks for telling me this.

    I wanted to reclaim previously used object IDs since I purge certain object IDs as part of a DXL script (reserving certain object IDs from being used).

    I want to make these object IDs usable again.

    I have a feeling that it would be programmatically possible since RCRs reserve object IDs in a similar manner i.e. you insert new objects in an RCR, save these to an RCR and close the module. Even if you open another RCR or add new objects in the interim, whenever you work on that RCR again, those object IDs are reserved only for that particular RCR.



    ------------------------------
    Ian Sajkowicz
    ------------------------------