Deleting/renaming productions
I have a few productions that my developers named "TEST" and would ideally would like them to have more relevant names. Is there a way to rename a production? I tried exporting and deploying the production under a new name and it worked, but my new production is empty. Also I'd like to delete a production that is in a suspended state. When I attempt to delete the suspended production, I get errors that the production isn't stopped, so can't be deleted. I can't start it to clear the suspended status, either. I get the following error:
14:26:18.126:Ens.Director: Production 'CHSLI.TEST' starting... 14:26:18.126:Ens.Director: ERROR <Ens>ErrException: <CLASS DOES NOT EXIST>zStartProduction+40^Ens.Director.1 *CHSLI.TEST -- logged as '-' number - @' Set tSC=$classmethod(pProductionName,"OnStart",tStartTime) Quit:('tSC)' 14:26:18.126:Ens.Director: ERROR <Ens>ErrException: <CLASS DOES NOT EXIST>zStartProduction+40^Ens.Director.1 *CHSLI.TEST -- logged as '-' number - @' Set tSC=$classmethod(pProductionName,"OnStart",tStartTime) Quit:('tSC)' Production 'CHSLI.TEST' not started: ERROR <Ens>ErrException: <CLASS DOES NOT EXIST>zStartProduction+40^Ens.Director.1 *CHSLI.TEST -- logged as '-' number - @' Set tSC=$classmethod(pProductionName,"OnStart",tStartTime) Quit:('tSC)'
Thanks, Lewis
Let's say you have this production definition:
You can change
To any other name.
After recompile, new name should be displayed in SMP.
I think the class name and the production name need to match so in Studio you use Tools->CopyClass to get a class with the meaningful name. And then edit the Production Name in the XData.
For the second question - if you are on a test/development system and you are happy to remove all information about the status and queued messages you can use:
do ##class(Ens.Director).CleanProduction()
but it will destroy information so it must never be used on a real system.
That worked great. Thanks guys
I did as mentioned by David and Eduard above. I have one small problem. When I go to edit a rule or constraint, I get the following error. It is still looking for my old production name: