Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Updating Ensemble business host programatically

Question
Steve Pisani · Jun 18, 2016

Updating Ensemble business host programatically

Hi. This about  a migration of code from a DEV environment to a PROD environment.

If an (under development) business host is Enabled in DEV environment  and the production class is migrated across environments, this means that the Enabled status of the same business host in PROD would also become enabled (even if it may have been disabled before the update)

I want to migrate the production class, but leave the enabled/disabled status of business hosts the same - so - i make a list of them, upgrade - then go through each one resetting their status to the original setting using Ens.Director.

Problem is- this does not update the XML in the production class, and, if anyone accidentally compiles it in PRD, the bad statues will be re-instated. 

If you change the status of a business host from the management portal, then, i know the class updates.

Is there an API to update the Enabled attribute of a Business host as defined in the XML X DATA block of the production class ? 

I'm aware I can use XSLT, haven't explored how easy that is yet, so, if someone has sample xslt- that would be great too.

Steve

#Change Management #Ensemble

Source URL:https://community.intersystems.com/post/updating-ensemble-business-host-programatically