Sample.TaskExample1
class Sample.TaskExample1 extends Sample.Task
Defining a task for End Users You want to generate a standard report that the user schedules to run, allowing them the flexibility to choose when it runs. By assigning Properties to the Class we can make items configurable such as where the report will be directed and perhaps a heading to be displayed. The System Management Portal will automatically display the properties for Printer and Heading and will validate that Printer is not "" You can add any logic you would like to any propertyProperty Inventory
Method Inventory
Properties
property Heading as %String;
Property methods: HeadingDisplayToLogical(), HeadingGet(), HeadingIsValid(), HeadingLogicalToDisplay(), HeadingLogicalToOdbc(), HeadingNormalize(), HeadingSet()
property Printer as %String;
Output printer for report
Property methods: PrinterDisplayToLogical(), PrinterGet(), PrinterLogicalToDisplay(), PrinterLogicalToOdbc(), PrinterNormalize(), PrinterSet()
Methods
method OnTask() as %Status
Your program logic can be here in the OnTask method or in another class or a routine
just be sure to return a status code from the OnTask method
Inherited Members
Inherited Properties
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- AlternativeOnTask()
- GetCollectionType()
- GetPropertyName()
- GetSettings()
- GetTaskName()
- OnSubmit()
- ScheduleAfterAnother()
- ScheduleHourly()
- ScheduleMonthly()
- ScheduleOnceDaily()
- ScheduleWeekly()
- SetSettings()
- SuspendAndResumeTask()