| 4D v15.4PROCESS PROPERTIES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v15.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 | Longint |   | 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 | 
| Restore Process | Longint | -21 | 
| Serial Port Manager | Longint | -6 | 
| Server interface process | Longint | -15 | 
| 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_TEXT(vName) //Initialize the variables
 C_LONGINT(vState)
 C_LONGINT(vTimeSpent)
 PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)See example for On Exit database method.
 Add a comment
Add a comment