Scope and Data Type of a Gantt Object
A Gantt object can be instantiated only from PeopleCode. You can use this object only in PeopleCode programs that are associated with an online process, not in an Application Engine program, a message notification, a Component Interface, and so on.
Gantt objects are declared using the Gantt data type. For example:
Local Gantt &MyGantt;