> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with a Workflow in M-Files

> Send files from the M-Files client to FlexiCapture by changing a workflow state, with registration parameters that map the vault, object type, and class.

To send a file to ABBYY FlexiCapture, open the M-Files client and do the following:

1. Move the file to the required document vault, right-click it, and click **Workflow** →**Change State…**.
2. Specify a workflow and state transition and click **OK**.

The foregoing script will send a batch to ABBYY FlexiCapture. This batch will have predefined registration parameters assigned to it. These registration parameters will contain the following information:

* **Repository** – the document vault from which the document was sent.

<Note>
  The "export from FlexiCapture" script does not use the **Repository** parameter.
</Note>

* **FolderPath** – the object type name in the M-Files document vault
* **Template** – the class name in the M-Files object type
* **FileName** – the value set as the name property of the document

You can use the values of these registration parameters to update the original M-Files document. For detailed instructions on using tags, please see [Specifying export settings and mapping fields](/flexi-capture/connectors/m-files/mf-fields-config).

For more information about registration parameters, see [Registration parameters](/flexi-capture/project-settings/reg-params).

When FlexiCapture receives the file, processing will begin. During the processing, the file will be sent to first to the verification stage (if verification is set up) and then to the export stage. At the export stage, ABBYY FlexiCapture will add the captured fields to the document and send the document back to M-Files.
