1e41f4b71Sopenharmony_ci# ProcessRunningInfo 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **ProcessRunningInfo** module defines the running information of a process. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> - The APIs provided by this module are deprecated since API version 9. You are advised to use [ProcessInformation<sup>9+</sup>](js-apis-inner-application-processInformation.md) instead. 7e41f4b71Sopenharmony_ci> - The initial APIs of this module are supported since API version 8. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci## Modules to Import 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci```ts 12e41f4b71Sopenharmony_ciimport appManager from '@ohos.application.appManager'; 13e41f4b71Sopenharmony_ci``` 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci## Attributes 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityRuntime.Mission 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci| Name| Type| Readable| Writable| Description| 20e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- | -------- | 21e41f4b71Sopenharmony_ci| pid | number | Yes| No| Process ID.| 22e41f4b71Sopenharmony_ci| uid | number | Yes| No| User ID.| 23e41f4b71Sopenharmony_ci| processName | string | Yes| No| Process name.| 24e41f4b71Sopenharmony_ci| bundleNames | Array<string> | Yes| No| Names of all running bundles in the process.| 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci## Usage 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ciThe process running information is obtained by using [getProcessRunningInfos](js-apis-application-appManager.md#appmanagergetprocessrunninginfosdeprecated) in **appManager**. 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci**Example** 31e41f4b71Sopenharmony_ci```ts 32e41f4b71Sopenharmony_ciimport appManager from '@ohos.application.appManager'; 33e41f4b71Sopenharmony_ciimport { BusinessError } from '@ohos.base'; 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ciappManager.getProcessRunningInfos().then((data) => { 36e41f4b71Sopenharmony_ci console.log(`success: ${JSON.stringify(data)}`); 37e41f4b71Sopenharmony_ci}).catch((error: BusinessError) => { 38e41f4b71Sopenharmony_ci console.error(`failed: ${JSON.stringify(error)}`); 39e41f4b71Sopenharmony_ci}); 40e41f4b71Sopenharmony_ci``` 41