This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > Ens.Rule.UI.RuleDocument

Ens.Rule.UI.RuleDocument

class Ens.Rule.UI.RuleDocument extends %Studio.AbstractDocument

Abstract Document used to load Business Rules into Studio.

Method Inventory

Parameters

parameter EXTENSION = .rul;

Methods

method CompileDocument(ByRef qstruct As %String) as %Status
CompileDocument is called when the document is to be compiled
classmethod Delete(name As %String) as %Status
Delete the Business Rule name.
classmethod Exists(name As %String) as %Boolean
Return 1 if the given Rule document exists and 0 if it does not.
method ImportFromXML(stream As %RegisteredObject, flags As %String) as %Status
Inherited description: Passed a stream containing the XML document, this method should insert this into the current document. Once this is done the importer will call Save on the document. This default handler in assumes the export ExportToXML() just wrote the data in a CDATA structure
classmethod LocalizeDescription(ext As %String, ByRef Description As %String(MAXLEN=500)) as %Status
method Save() as %Status
Save the rule document.
classmethod TranslateExportName(name As %String, ByRef items As %String) as %Status
Make the XML export export the class instead of this studio document which is only the XData.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new window