Controller 12.12

# Controller Lua Functions and Methods

Controller Lua scripts take the basic form:

    function TaskMain(service)
       local status = 0
       -- perform task
       return status
    end

Scripts return a status value that indicates the status event. The status event is recorded by the Controller server:

Status value | Status event
--- | ---
`0` | Success - Task Successfully completed
`1` | Warning - Warning occurred
`2` | Error - Critical Error
`3` | A status value of `3` means that the script has completed successfully. No extra status event is generated.

This section describes the Controller-specific functions that you can use in Lua scripts. In addition, Controller also supports all common Lua functions, such as those supported by the IDOL Connector Framework Server (CFS). See Lua Functions and Methods Reference. For more general information on the Lua scripting language, see http://www.lua.org/.

© Copyright 2015-2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Controller 12.12

Topic Title: Controller Lua Functions and Methods