adm.ServerEventsEnumJobs

Returns the list of server jobs to which a given server-side OS-event type (scriptable event) can be attached. Belongs to the OS-events administration subsystem — the companion of adm.ServerEventsRefresh (which reloads OS events without a server restart). It is not related to the RJC live monitor (krn.RegisterJobCall). Typically used by the event editor to populate the "which job" selection when defining an event.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Reserved; pass 0.

Event

INT

Yes

Server-event code (see server events): 5000 KernelBeforeJob, 5001 KernelAfterJob, 5002 JobBeforeObject, 5003 JobAfterObject, …

2. Output Parameters

Name Type Dependency Description

Jobs

STRING

Semicolon-separated list of job names the given event type can be attached to.

3. Return Value

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

4. Notes (verified live)

Event Code Result

KernelBeforeJob

5000

424 jobs across all namespaces (abn, adm, ado, cnv, dms, dtr, krn, mng, std, vtx, wfm) — attachable to any job.

KernelAfterJob

5001

The same 424 jobs.

JobBeforeObject

5002

Only std.DoArchive.

JobAfterObject

5003

Only std.DoArchive.

OnObjectHistoryEntry

5011

Error -1043332107 — event is not job-bound.

OnSessionLogin

5012

Error -1043332107 — event is not job-bound.

  • The returned list is the set of eligible jobs for that event type, not the jobs that currently have an event defined.

  • Event codes that are not bound to a job (global / per-session events such as OnObjectHistoryEntry, OnSessionLogin) return -1043332107 (see error codes).

5. See Also