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

主页 > 来自海外的问题:如何在Ensemble 中以编程方式删除单个规则和Ensemble 类

问题
Michael Lei · 五月 10, 2021

来自海外的问题:如何在Ensemble 中以编程方式删除单个规则和Ensemble 类

大家好,

我需要根据用户请求删除Ensemble接口。我想为此编写一个程序,执行的时候将通过代码删除接口组件。
能否提供以下操作的代码示例?

  • 从规则类中删除单个规则
  • 从Ensemble删除一个类
  • 从生产环境中删除主机(服务/操作/流程)。

感谢帮助。

谢谢,

普鲁索他曼

Ensemble Delete Individual Rules and Ensemble classes programmatically
Hi Team,

I have a requirement to delete the Ensemble interfaces , as per User request. I would like to write a routine for that and once I execute, it should remove the interface components through code.
Could you please provide code samples for the following actions ?

Deleting an individual rule from a rule class
Deleting a class from Ensemble
Deleting a Host (Service/Operation/Process) from the Production.
Appreciate the help.

Thanks,

Purushothaman.T

#Code Snippet #Caché #Ensemble

源 URL:https://cn.community.intersystems.com/post/%E6%9D%A5%E8%87%AA%E6%B5%B7%E5%A4%96%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8ensemble-%E4%B8%AD%E4%BB%A5%E7%BC%96%E7%A8%8B%E6%96%B9%E5%BC%8F%E5%88%A0%E9%99%A4%E5%8D%95%E4%B8%AA%E8%A7%84%E5%88%99%E5%92%8Censemble-%E7%B1%BB