1# ProcessInformation
2
3The **ProcessInformation** module defines the running information of a process.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import { appManager } from '@kit.AbilityKit';
13```
14
15## Properties
16
17**System capability**: SystemCapability.Ability.AbilityRuntime.Core
18
19| Name| Type| Read-Only| Optional| Description|
20| -------- | -------- | -------- | -------- | -------- |
21| pid | number | No| No| Process ID.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
22| uid | number | No| No| User ID.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
23| processName | string | No| No| Process name.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
24| bundleNames | Array&lt;string&gt; | No| No| Names of all running bundles in the process.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
25| state<sup>10+</sup> | [appManager.ProcessState](js-apis-app-ability-appManager.md#processstate10)| No| No| Running status of the process.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
26| bundleType<sup>12+</sup> | [bundleManager.BundleType](js-apis-bundleManager.md#bundletype) | No| No| Type of the bundle running in the process.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
27| appCloneIndex<sup>12+</sup> | number   | No  | Yes  | Index of an application clone.<br>**Atomic service API**: This API can be used in atomic services since API version 12. |
28
29## How to Use
30
31The process information is obtained by calling [getRunningProcessInformation](js-apis-app-ability-appManager.md#appmanagergetrunningprocessinformation) of the **appManager** module.
32
33**Example**
34
35```ts
36import { appManager } from '@kit.AbilityKit';
37
38appManager.getRunningProcessInformation((error, data) => {
39  if (error) {
40    console.error(`getRunningProcessInformation fail, error: ${JSON.stringify(error)}`);
41  } else {
42    console.log(`getRunningProcessInformation success, data: ${JSON.stringify(data)}`);
43  }
44});
45```
46