The Framework Instance

The Framework instance is the only argument that is supplied in the main function in the Jython script. This is an interface that can be used to retrieve information required to run the script (for example, information on trigger CIs and adapter parameters), and is also used to report on errors that occur during the script run. For details, see Data Flow Management API Reference.

The correct usage of Framework instance is to pass it as argument to each method that uses it.


def DiscoveryMain(Framework):
         OSHVResult = helperMethod (Framework)
            return OSHVResult
def helperMethod (Framework):
     probe_name    = Framework.getDestinationAttribute('probe_name')
     return result

This section describes the most important Framework usages:

Parent topic: Create Jython Code