Executing your Server Code

Once you deploy your Server Code in Kii Cloud, it will be executed according to setting configured in Server Hook configuration file.

  • Executing Manually

    You can execute your Server Code from the client SDK. Please read Manually Executing Server Code to learn more.

    When you manually execute your Server Code, a DEBUG level event will be recorded in the developer log. You can check the log with the command line tool. Please read Inspect Developer Log to learn more.

  • Executing with Server Hook (Server Triggered)

    A Server Code will be executed based on the triggers set in Server Hook configuration file.

    No log will be recorded in the developer log when Server Code is executed by the server triggered hook. If you want to record some custom messages, for instance for debugging, you can explicitly record them in your code. Please read Developer Log to learn more.

  • Executing with Server Hook (Schedule Based)

    A Server Code will be executed at the designated time set in Server Hook configuration file.

    You can check the result of the executions with the command line tool. The tool will give you a list of schedule based execution. Please read Checking Schedule Based Execution Results to learn more.

  • Executing with Thing-IF Trigger

    A Server Code can be also executed automatically by setting a Thing-IF trigger. Please read the following pages to learn more: Android, iOS.

Unlike a client application, you cannot show an error message when an error occurs in your Server Code. When designing your Server Code, please be careful to ensure data consistency and consider about error recovery process as needed. You can also implement your Server Code so as to later recover the process manually with the help of the developer log.