Home > Class Reference > ENSLIB namespace > Ens.BPL.Scope


class Ens.BPL.Scope extends Ens.BPL.Activity

This class represents a sequence of activities to be performed. Errors occuring with the scope block are caught and redirected to the a fault handler. The fault handler can, if desired, invoke a compensation handler which is a named block of code which is intended to compensate for the fault. Transfer of control flow to a catch block can also be achieved by using the Throw activity,naming the catch block to be invoked.

Property Inventory

Method Inventory


property Activities as Ens.BPL.ActivityList;
This holds the Try Activity List
Property methods: ActivitiesGet(), ActivitiesGetSwizzled(), ActivitiesIsValid(), ActivitiesNewObject(), ActivitiesSet()
property CompensationHandlers as Ens.BPL.CompensationHandlerList;
This holds the CompensationHandlers
Property methods: CompensationHandlersGet(), CompensationHandlersGetSwizzled(), CompensationHandlersIsValid(), CompensationHandlersNewObject(), CompensationHandlersSet()
property FaultHandlers as Ens.BPL.CatchList;
This holds the Catch List
Property methods: FaultHandlersGet(), FaultHandlersGetSwizzled(), FaultHandlersIsValid(), FaultHandlersNewObject(), FaultHandlersSet()


method GenerateCode(pCompiler As Ens.BPL.Compiler) as %Status [ Language = objectscript ]
method GenerateXML(pStream As %BinaryStream) as %Status [ Language = objectscript ]
Inherited description: This generates the common XML attributes for this Activity
method Validate(ByRef pStatus As %Status, pContext As Ens.BPL.ValidationContext) as %Status [ Language = objectscript ]
Perform a sanity check on the nodes in the parse tree

Inherited Members

Inherited Properties

Inherited Methods