ProcessRef

ProcessRef = { key?: never; name: string; } | { key: string; name?: never; }

Selects a process by exactly one identifier. Used by ProcessServiceModel.start.

  • { name } — process name. Requires a folder scope (folderId / folderKey / folderPath) to disambiguate across folders.
  • { key } — process GUID. A folder scope is still required so the job routes to the right folder.

{ id } is intentionally not supported. Every ProcessGetResponse already exposes key alongside id, so any caller that has the id has the key too — pass { key: process.key } directly.