Skip to main content

statusRegistry

const statusRegistry: StatusRegistry

Global registry of all defined status vendors and codes for the current project. Includes the built-in "LAY" vendor plus any custom vendors defined in Resource Status Definition Assets.


At a Glance

const VENDOR = Status.getVendorByName('MyCompany');

export function onMessage() {
if (invalid) {
message.addStatus(Severity.ERROR, Status.create(VENDOR, 'INVALID_DATA', reason));
}
}

Common Tasks

TaskMethod / Property
Get all vendorsstatusRegistry.vendors
Get vendor by IDstatusRegistry.getVendorById(0)
Get vendor by long namestatusRegistry.getVendorByLongName('MyCompany')
Get vendor by short namestatusRegistry.getVendorByShortName('MYCO')
Get language codesstatusRegistry.languages
Access status codesstatusRegistry.vendors[0].statusCodes

See Also