> For the complete documentation index, see [llms.txt](https://documentation.efalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.efalia.com/produit/efalia-process/administration/agents-process.md).

# Agents Process

Les agents sont des tâches automatiques planifiées qui s'exécutent sur le serveur Efalia Process sans intervention humaine.

Plusieurs types d'agents existent, chacun dédié à un traitement spécifique :

| Type d'agent                       | Classe Java                                      | Description                                                                                                                                                                                                           |
| ---------------------------------- | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Archiveur**                      | *(interne)*                                      | Extrait de la base socle les documents en fin de vie — voir [Module d'Archivage](https://documentation.efalia.com/produit/efalia-process/administration/module-archivage.md)                                          |
| **Agent d'extraction**             | `com.clog.workey.agents.extract.ExtractionAgent` | Extrait les documents et pièces jointes modifiés depuis sa dernière exécution — voir [Paramétrage des Connecteurs](https://documentation.efalia.com/produit/efalia-process/administration/parametrage-connecteurs.md) |
| **Lancement de processus externe** | `com.clog.workey.agents.tasks.ExecProcess`       | Exécute une commande externe présente sur le serveur                                                                                                                                                                  |

## Agent de Lancement de Processus Externes

**Classe :** `com.clog.workey.agents.tasks.ExecProcess`

Cet agent permet d'exécuter une commande externe présente sur le serveur.

{% hint style="warning" %}
Il est fortement déconseillé de modifier directement les données Efalia Process (base de données ou système de fichiers) lors de l'exécution de cet agent.
{% endhint %}

### Paramètres

* **`processCommand`** : chemin du processus à exécuter.
* **`processEnv`** : liste de variables d'environnement séparées par `|`. Chaque élément est au format `clé=valeur`. Exemple : `HOME=/home/workey|VERSION=6.12.5`.
* **`processExecDir`** : répertoire de travail du processus exécuté.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.efalia.com/produit/efalia-process/administration/agents-process.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
