> 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/docapostecheck-workflow-application.md).

# DOCAPOSTECHECK Workflow Application

## Overview

The **DOCAPOSTECHECK** workflow application lets you check the status of a transaction and download the associated files.

## How it works

* You can check the status of a transaction and download the file from Docaposte.<br>
* Application logs are available. These can be specified by setting the value of the `DocaposteCheckLogLevel` parameter in the `web.config` file to `0` to disable logging, `1` for error logs, `2` for information logs, or `3` for debug logs; The default value is `0`.

## Required parameter

| **Parameter**              | **Type** | **Direction** | **Description**                |
| -------------------------- | -------- | ------------- | ------------------------------ |
| `DOCAPOSTE_TRANSACTION_ID` | TEXT     | IN            | ID of the transaction to check |

## Optional parameters

### Docaposte configuration

| **Parameters**          | **Type** | **Direction** | **Description**                                                                                                                                                 |
| ----------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `DOCAPOSTE_USERNAME`    | TEXT     | IN            | <p>Docaposte username<br><br>By default, this value comes from the <code>DocaposteUsername</code> parameter in the <code>web.config</code> file.</p>            |
| `DOCAPOSTE_PASSWORD`    | TEXT     | IN            | <p>Docaposte password<br><br>By default, this value comes from the <code>DocapostePassword</code> parameter in the <code>web.config</code> file.</p>            |
| `DOCAPOSTE_HOST_SERVER` | TEXT     | IN            | <p>Docaposte host server</p><p></p><p>By default, this value comes from the <code>DocaposteHostServer</code> parameter in the <code>web.config</code> file.</p> |

### General

| **Parameters**             | **Type** | **Direction** | **Description**                                      |
| -------------------------- | -------- | ------------- | ---------------------------------------------------- |
| `DOCAPOSTE_DOCUMENT_NAMES` | TEXT     | IN            | Name(s) of the document(s) sent for signature(s)     |
| `DOCAPOSTE_DOCUMENTx`      | FILE     | OUT           | Signed document(s), where `x` is the document number |
| `DOCAPOSTE_STATUS`         | TEXT     | OUT           | Transaction status                                   |

## Example with DOCAPOSTESEND

In the following example, the DOCAPOSTESEND action is directly followed by the DOCAPOSTCHECK action. This action will loop back onto itself until the status is other than `OPEN`.

If the returned status meets the condition, the document will be downloaded from Docaposte.

![](https://content.gitbook.com/content/ifwJ9X94VJGndKIGZ9Qn/blobs/6PQWllye76HtqnzAsRGG/image.png)

With the system loop action function, the DOCAPOSTECHECK action will be executed every `x` seconds until the OUT condition is met.

![](https://content.gitbook.com/content/ifwJ9X94VJGndKIGZ9Qn/blobs/v8gGD94UCMwoG4THagvd/image.png)
