| 4D v13.4PROCESS PROPERTIES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v13.4
 PROCESS PROPERTIES 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PROCESS PROPERTIES ( process ; procName ; procState ; procTime {; procVisible {; uniqueID {; origin}}} ) | ||||||||
| Parameter | Type | Description | ||||||
| process | Longint |   | Process number | |||||
| procName | String |   | Process name | |||||
| procState | Longint |   | Process state | |||||
| procTime | Longint |   | Cumulative time taken by process in ticks | |||||
| procVisible | Boolean |   | Visible (TRUE) or Hidden (FALSE) | |||||
| uniqueID | Integer |   | Unique process number | |||||
| origin | Longint |   | Origin of the process | |||||
The PROCESS PROPERTIES command returns information about the process whose process number you pass in process.
After the call:
| Constant | Type | Value | 
| Aborted | Longint | -1 | 
| Delayed | Longint | 1 | 
| Does not exist | Longint | -100 | 
| Executing | Longint | 0 | 
| Hidden modal dialog | Longint | 6 | 
| Paused | Longint | 5 | 
| Waiting for input output | Longint | 3 | 
| Waiting for internal flag | Longint | 4 | 
| Waiting for user event | Longint | 2 | 
| Constant | Type | Value | 
| _o_Web Process with Context | Longint | -11 | 
| Apple Event Manager | Longint | -7 | 
| Backup Process | Longint | -19 | 
| Cache Manager | Longint | -4 | 
| Client Manager Process | Longint | -31 | 
| Created from execution dialog | Longint | 3 | 
| Created from Menu Command | Longint | 2 | 
| Design Process | Longint | -2 | 
| Event Manager | Longint | -8 | 
| Execute on Client Process | Longint | -14 | 
| Execute on Server Process | Longint | 1 | 
| External Task | Longint | -9 | 
| Indexing Process | Longint | -5 | 
| Internal 4D Server Process | Longint | -18 | 
| Internal Timer Process | Longint | -25 | 
| Log File Process | Longint | -20 | 
| Main Process | Longint | -1 | 
| Method editor macro Process | Longint | -17 | 
| Monitor Process | Longint | -26 | 
| MSC Process | Longint | -22 | 
| None | Longint | 0 | 
| On Exit Process | Longint | -16 | 
| Other 4D Process | Longint | -10 | 
| Other User Process | Longint | 4 | 
| Process Server Interface | Longint | -15 | 
| Restore Process | Longint | -21 | 
| Serial Port Manager | Longint | -6 | 
| SQL Method Execution Process | Longint | -24 | 
| Web Process on 4D Remote | Longint | -12 | 
| Web Process with no Context | Longint | -3 | 
| Web server Process | Longint | -13 | 
If the process does not exist, which means you did not pass a number in the range 1 to Count tasks, PROCESS PROPERTIES leaves the variable parameters unchanged.
The following example returns the name, state, and time taken in the variables vName, vState, and vTimeSpent for the current process:
 C_STRING(80;vName) ` Initialize the variables
 C_INTEGER(vState)
 C_INTEGER(vTime)
 PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)See example for On Exit database method.
	Product:  4D
	Theme:  Processes
	Number:  
        336
        
        
        
	
	Modified:  4D v11 SQL Release 3