How to create productions via routine
Hi All,
I am trying to create a production from a script(routine).
I am using the below way to create an empty production
Set oProd=##class(Ens.Config.Production).%New()
Set oProd.Name="Test.NewProduction"
Set oProd.ActorPoolSize=1
Set status=oProd.%Save()
But when i tried to start the production, i am getting an error as "Test.NewProduction" class does not exists.
Is there any other way to create the production via routine or terminal using commands as above?
Why would you want to do that?
Here's sample production class:
Ens.Config.Production serialized is XData ProductionDefinition and not the class itself.
To create production class automatically you need to: