# STARTPROCESS

## Aperçu  <a href="#apercu" id="apercu"></a>

L'application de workflow **STARTPROCESS** vous permet de lancer une nouvelle demande avec les paramètres correspondants. Elle fournit une solution simple pour les communications inter-processus.

Il existe trois façons d'utiliser STARTPROCESS pour lancer une nouvelle demande :

* ID du processus
* Nom du processus avec version du processus
* Nom du processus avec test

## Paramètres  <a href="#parametres" id="parametres"></a>

### Processus

<table data-header-hidden><thead><tr><th valign="top">Paramètre</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Paramètre</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>PROCESS_ID</code></td><td valign="top">Numérique</td><td valign="top">IN</td><td valign="top">ID de processus de la demande à lancer (à utiliser indépendamment, sans les autres paramètres)</td></tr><tr><td valign="top"><code>PROCESS_NAME</code></td><td valign="top">Texte</td><td valign="top">IN</td><td valign="top">Nom du processus de la demande à lancer</td></tr><tr><td valign="top"><code>PROCESS_VERSION</code></td><td valign="top">Numérique</td><td valign="top">IN</td><td valign="top">Version du processus à lancer</td></tr><tr><td valign="top"><code>TEST</code></td><td valign="top">Texte</td><td valign="top">IN</td><td valign="top"><p>Mode test</p><ul><li><code>Y</code>: Lancer une version de test</li><li><code>N</code>: Lancer la version active</li></ul></td></tr></tbody></table>

### Paramètres facultatifs

<table data-header-hidden><thead><tr><th valign="top">Paramètre</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Paramètre</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>REQUEST_ID</code></td><td valign="top">Numérique</td><td valign="top">OUT</td><td valign="top">Renvoie l'ID de la nouvelle demande</td></tr><tr><td valign="top"><code>IMPERSONATE_USERNAME</code></td><td valign="top">Texte</td><td valign="top">IN</td><td valign="top">Nom d'utilisateur de l'emprunt d'identité</td></tr></tbody></table>

Vous pouvez définir au besoin des paramètres additionnels du processus à lancer, par exemple `COMPANY` (paramètre IN, valeur texte) pour le nom de la société (p.ex. : `ACME_COMPANY`).

## Exemples

### ID du processus

<table data-header-hidden><thead><tr><th valign="top">Paramètre</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Paramètre</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>PROCESS_ID</code></td><td valign="top">Numérique</td><td valign="top">IN</td><td valign="top">Envoyer la valeur de <code>MY_PROCESS_ID</code> (une donnée numérique de processus contenant l'ID du processus à lancer, p.ex. : <code>1320</code>)</td></tr></tbody></table>

### Nom du processus avec version du processus

<table data-header-hidden><thead><tr><th valign="top">Paramètre</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Paramètre</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>PROCESS_NAME</code></td><td valign="top">Texte</td><td valign="top">IN</td><td valign="top">Envoyer la valeur de <code>MY_PROCESS_NAME</code> (une donnée de processus de type texte contenant le nom du processus à lancer, p.ex. : <code>LEAVE_APPLICATION</code>) </td></tr><tr><td valign="top"><code>PROCESS_VERSION</code></td><td valign="top">Numérique</td><td valign="top">IN</td><td valign="top">Envoyer la valeur de<code>MY_PROCESS_VERSION</code> (une donnée de processus numérique contenant le numéro de version du processus à lancer, p.ex.: <code>2</code>)</td></tr></tbody></table>

### Nom du processus avec test

<table data-header-hidden><thead><tr><th valign="top">Paramètre</th><th valign="top">Type</th><th valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><strong>Paramètre</strong></td><td valign="top"><strong>Type</strong></td><td valign="top"><strong>Direction</strong></td><td valign="top"><strong>Description</strong></td></tr><tr><td valign="top"><code>PROCESS_NAME</code></td><td valign="top">Texte</td><td valign="top">IN</td><td valign="top">Envoyer la valeur de <code>MY_PROCESS_NAME</code> (une donnée de processus de type texte contenant le nom du processus à lancer, p.ex. : <code>LEAVE_APPLICATION</code>)</td></tr><tr><td valign="top"><code>TEST</code></td><td valign="top">Texte</td><td valign="top">IN</td><td valign="top">Envoyer la valeur de<code>MY_TEST</code> (p.ex.: <code>Y</code>)</td></tr></tbody></table>
