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 |
|---|---|---|---|
|
INT |
Yes |
Reserved; pass |
|
INT |
Yes |
Server-event code (see server events): |
2. Output Parameters
| Name | Type | Dependency | Description |
|---|---|---|---|
|
STRING |
— |
Semicolon-separated list of job names the given event type can be attached to. |
4. Notes (verified live)
| Event | Code | Result |
|---|---|---|
KernelBeforeJob |
|
424 jobs across all namespaces (abn, adm, ado, cnv, dms, dtr, krn, mng, std, vtx, wfm) — attachable to any job. |
KernelAfterJob |
|
The same 424 jobs. |
JobBeforeObject |
|
Only |
JobAfterObject |
|
Only |
OnObjectHistoryEntry |
|
Error |
OnSessionLogin |
|
Error |
-
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
-
adm.ServerEventsRefresh — reloads the OS events without a server restart