> For the complete documentation index, see [llms.txt](https://docs.advantys.com/workflowgen-administration-module-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.advantys.com/workflowgen-administration-module-reference-guide/8.3-4/completeaction-workflow-application.md).

# COMPLETEACTION Workflow Application

## Overview

The **COMPLETEACTION** workflow application lets you complete an ongoing action with the corresponding parameters. It provides a simple solution for inter-process communications and synchronization.

## Parameters

### Request

| **Parameter** | **Type** | **Direction** | **Description**                          |
| ------------- | -------- | ------------- | ---------------------------------------- |
| `REQUEST_ID`  | Numeric  | IN            | Request ID of the action to be completed |

### Action

| **Parameter**          | **Type** | **Direction** | **Description**                                                                 |
| ---------------------- | -------- | ------------- | ------------------------------------------------------------------------------- |
| `ACTION_NAME`          | Text     | IN            | Name of the action to be completed (the first instance found will be completed) |
| `ACTION_ID`            | Numeric  | IN            | Action instance ID of the action to be completed                                |
| `IMPERSONATE_USERNAME` | Text     | IN            | Username of the user who will be associated with completing the action          |

### Optional parameters

The optional parameters are the parameters of the action to be completed. You will have to define these parameters in the corresponding action parameters.

#### 📌 Example

If you want to complete an asynchronous web procedure action called `MYASYNCACTION`, which has the following parameter:

* `AMOUNT`: receive data into `TOTAL` (you have to create this process data)

Then, in your process, you have to add an action using the COMPLETEACTION application with the following parameters:

| **Parameter** | **Type** | **Direction** | **Description**                                                                                                         |
| ------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `REQUEST_ID`  | Numeric  | IN            | Send value of `MY_REQUEST_ID` (a numeric process data containing the request ID of the action to complete, e.g. `1320`) |
| `ACTION_NAME` | Text     | IN            | Send value of the name of the action to complete (e.g. `MYSYNCACTION`)                                                  |
| `AMOUNT`      | Numeric  | IN            | Send value of `MY_AMOUNT` (a numeric process data containing a value for the amount, e.g. `1234.56`)                    |

{% hint style="info" %}
You should add exception handling on COMPLETEACTION type actions in case of error (for example, an invalid request number or an invalid action number, etc.).
{% endhint %}
