Skip to main content
Unattended processing sends documents from M-Files to ABBYY FlexiCapture and back without any operator involvement. Setting it up takes two parts: an M-Files workflow, and the schema of the ABBYY FlexiCapture project.
Install the connector libraries on the M-Files server before you configure the workflow. For more information, see Install and use the M-Files workflow activity.

Configure the M-Files workflow

1

Create a workflow

In M-Files Admin, navigate to Connections to M-Files Server → Local Computer → Document Vaults, select your document vault, and then click Workflows. Click New Workflow. You can also modify an existing workflow.
2

Create a state

Select the workflow you just set up and click New State.
3

Name the state

In the Name field, type a name for the state, for example In Processing by FlexiCapture.
4

Add a Run script action

On the Actions tab of the State Properties window, select the Run script option and click Edit Code.For more information about workflow state actions, see the M-Files User Guide.
5

Paste the script

Paste the following script into the Edit VBScript Code window, and provide your ABBYY FlexiCapture connection settings, the project name, and the batch type you are going to use.
When executed, this script sends a document from M-Files to ABBYY FlexiCapture for further processing using the M-Files Workflow Activity library. The script stops after the file has been sent.
The ABBYY FlexiCapture user whose credentials are specified in the script must have either the Scanning Operator role for the project and batch type specified in the script, or the Administrator role.
6

Save the script

Close the Edit VBScript Code window and click OK.
7

Create the approval state

Create another state, for example Waiting for approval, using the same New State procedure. This state indicates that the document is ready for approval.
The script code is also provided as M-Files workflow – Send to FlexiCapture.vbs, in the M-Files Workflow Activity folder of the connector distribution package. For more information about writing VBScript code in M-Files, see Available VBScript Variables and How do I write VBScript code for M-Files purposes in the M-Files User Guide.

Sample workflow

The following diagram shows a sample workflow for unattended processing of documents in ABBYY FlexiCapture.
Diagram of a sample M-Files workflow for unattended processing, showing the In Processing by FlexiCapture state followed by the Waiting for approval state.

Configure the ABBYY FlexiCapture project

Select the Unattended schema for the workflow in the ABBYY FlexiCapture project. This mode processes documents without operator involvement.
1

Open the workflow settings

Click Batch Type Properties → Workflow. For the Default batch type, click Project → Project properties instead.
2

Select the Unattended schema

Select Schema: Unattended.
The project also needs an export profile to send the processing results back to M-Files. For more information, see Configure data export from ABBYY FlexiCapture to M-Files.