Skip to main content

SYS.Process

Class SYS.Process Extends %SYS.ProcessQuery [ System = 4 ]

This class provides several instance methods which operate on a process instance.
Properties/Storage/Queries are inherited from the %SYS.ProcessQuery class. The methods declared here are protected methods which can only be executed on a process if they have write access to the %DB_IRISSYS resource (i.e. can write to the IRISSYS database.) The process executing this query must be in the %SYS namespace.

Methods

ReleaseAllLocks

Method ReleaseAllLocks() As %Status

Release ALL locks.
Release all locks for the process.

Resume

Method Resume() As %Status

Resume a process.
Resumes a process after it had previously been suspended.

Suspend

Method Suspend() As %Status

Suspend a process.
Put a process into a wait state so it stops executing code.

Terminate

Method Terminate(SendError As %Integer = 0) As %Status

Terminate a process.
Kills a process by sending it a halt message.
If SendError is 1 the killed job will issue a <RESJOB> error and invoke the ^%ETN utility.

ProcessTableSize

ClassMethod ProcessTableSize() As %Integer

Current size of the process table (number of process slots).