# Add Process Instance Comment

> `UiPath.Oracle.IntegrationCloud.Process.Activities.AddProcessInstanceCommentActivity`

`UiPath.Oracle.IntegrationCloud.Process.Activities.AddProcessInstanceCommentActivity`

The **Add Process Instance Comment** activity uses the Oracle Integration [Add Comments to a Process](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-processes-processid-comments-post.html) API to add a comment (**Comment**) to a specified process (**Process Id**).

After completing the post operation, the activity outputs the API call status (**Status**) and response message (**Response Message**).

## How it works

The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

1. Complete the [Setup](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-setup) steps.
2. Add the [Oracle Process Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-oracle-process-scope) activity to your project.
3. Add an activity or run an external process that outputs the process identifier (e.g., [Start Process](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-start-process), [Get Processes](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-process-instances)).
4. Add the **Add Process Instance Comment** activity inside the **Oracle Process Scope** activity.
5. Enter values for the **Input** properties.
6. Create and enter `String` variables for the **Output** properties.
7. Run the activity.
   * Your input properties are sent to the [Add Comments to a Process](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-processes-processid-comments-post.html) API.
   * The API returns the `String` values to your output property variables.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-178299-6e5a21e9-d4561add.webp)

## Properties

### Common

* **DisplayName** - The display name of the activity. This field supports only `Strings` or `String` variables.

### Input

* **Process Instance Id** - The identifier assigned to the process that you want to retrieve. Enter a `String` or `String` variable. To get the **Process Instance Id** value, add an activity or run an external process that outputs the process identifier (e.g., [Start Process](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-start-process), [Get Process Instances](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-process-instances)).
* **Comment** - The comment that you want to add to the process. Enter a `String` or `String` variable.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **Response Message** - The API response message. Enter a `String` variable
* **Status** - The status of the request. Enter a `String` variable. Possible values are *Success* or *Failure*.

## Example

The following image shows an example of the activity dependency relationship and input/output property values.

  ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-187106-91323f69-755c61e7.webp)
