stream class Ens.BPL.UI.BPLDocument extends Ens.Util.AbstractDocument

Abstract Document used to load BPL diagrams into Studio.

Property Inventory (Including Private)

Method Inventory (Including Private)


parameter DOCUMENTCLASS = Ens.BusinessProcessBPL;
Name of superclass used for documents of this type.
parameter EDITORURL = EnsPortal.BPLEditor.zen;
URL to use to get actual editor for Studio to display.
parameter EXTENSION = .bpl;
Inherited description: File extension used for this document (e.g., .dtl)


property ImportFlag as %Boolean [ Private , InitialExpression = 0 ];
Property methods: ImportFlagDisplayToLogical(), ImportFlagGet(), ImportFlagIsValid(), ImportFlagLogicalToDisplay(), ImportFlagNormalize(), ImportFlagSet()


method CompileDocument(flags As %String) as %Status [ Language = objectscript ]
Compile this document
method CopyFrom(source As %Stream.Object) as %Status [ Language = objectscript ]
Inherited description: Copies the contents of source into this Stream.

For example, you can copy oldstream into a new stream:

  Set newstream=##class(%GlobalCharacterStream).%New()
  Do newstream.CopyFrom(oldstream)

Returns a %Status value indicating success or failure.

classmethod Exists(name As %String) as %Boolean [ Language = objectscript ]
Return 1 if the given BPL document exists and 0 if it does not.
method ExportToXML(flags As %String) as %Status [ Language = objectscript ]
Export this document to the current device in XML format
classmethod GetURL(pName As %String) as %String [ Language = objectscript ]
method ImportFromXML(stream As %RegisteredObject, flags As %String) as %Status [ Language = objectscript ]
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
method Save() as %Status [ Language = objectscript ]
Deserialize the BPL Diagram and save it as a BPL class.
private method SaveBPLClass(pBPLStream As %Stream.Object, pXDataName As %String, pDescription As %String) as %Status [ Language = objectscript ]
Does the actual work of saving BPL stream to a BPL class
method SaveBPLToClass() [ Language = objectscript ]
This method saves BPL XML to the given class

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)