# Workflow Application: COMPLETEACTION usage

**URL:** https://discuss.workflowgen.com/t/workflow-application-completeaction-usage/476
**Category:** Workflow Applications
**Created:** [January 11, 2017, 5:00am UTC](https://discuss.workflowgen.com/t/workflow-application-completeaction-usage/476 "2017-01-11T05:00:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)
#### Post date: [January 11, 2017, 5:00am UTC](https://discuss.workflowgen.com/t/workflow-application-completeaction-usage/476/1 "2017-01-11T05:00:00Z")

</div>

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

#### Required parameters

**Note:** Only one of the `ACTION_NAME` or `ACTION_ID` parameters is required.

| Parameter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Direction | Description |
| --- | --- | --- | --- |
| `REQUEST_ID` | Numeric | IN | The request ID of the action to be completed |
| `ACTION_NAME` | Text | IN | The name of the action to be completed; the first instance found will be completed |
| `ACTION_ID` | Numeric | IN | The ID of the action instance to be completed |

#### Optional parameters

The optional parameters are the parameters of the action to be completed; these parameters must be defined in the corresponding action parameters.

#### Example

You want to complete an asynchronous web procedure action named `MYASYNCACTION`, which has the following parameters:

- `AMOUNT` receive the value into: Data: `TOTAL` (you must create this process data)

In your process, add an action using COMPLETEACTION application with the following parameters:

- `REQUEST_ID` send the value of: Data: `REQUEST_ID_UPDATE` (you must create this process data)

- `ACTION_NAME` send the value of: Text: `MYASYNCACTION`

- `AMOUNT` send the vaue of: Data: `AMOUNT_UPDATE` (you must create this process data)

You may have to add an exception management to handle possible errors (e.g. invalid request ID, action ID, or action name ).
