krn.EmptyJob

Generic job without its own logic. All passed parameters and files are returned unchanged in the response.

The job serves as a universal communication channel whose behavior is entirely defined by server-side before and after events. Without configured events, it behaves as an echo — all input parameters and files are returned 1:1.

1. Typical Use Cases

  • Execute server-side business logic — Before/after events can evaluate the passed parameters, perform server-side operations, and set custom return parameters.

  • File transfer — Files can be sent to the server and processed by events. The job can also return files in the response.

  • Parameterized RPC channel — Any input parameters are forwarded to the events, and any output parameters can be set by the events.

2. Input Parameters

Name Type Required Description

Flags

INT

Yes

Currently not supported — pass 0.

any

any

No

All additional parameters are forwarded to the server-side events and returned unchanged without configured events.

3. Input Files

Any files can be passed. Without configured events, they are returned unchanged in the response.

4. Return Value

(INT): 0 = Job successful, otherwise error code.

Without configured events, the response contains all input parameters and files as an echo. With configured events, the return parameters and files can be freely defined by the event script.

5. See Also

krn.RunScript — Executes a script directly (instead of via events).