FlowWright's File System Trigger feature automatically starts a workflow when you add files to a configured folder. This event-based workflow initiation mechanism links file-system activities to business process automation. For example, when an invoice PDF is placed in a designated folder, FlowWright can automatically detect the file and launch an Invoice Processing workflow. This eliminates the need for users to manually monitor folders and start workflows.
Consider an organization that receives hundreds of vendor invoices every day.
Without File System Trigger:
- Vendors send invoices to the organization.
- An employee downloads the invoice files.
- The employee saves them in a designated server folder.
- Another employee monitors the folder.
- The employee manually starts the invoice approval workflow.
- The invoice is processed through the approval process.
With File System Trigger:
- An invoice PDF is placed in a designated folder.
- FlowWright detects the incoming file.
- The configured workflow is automatically initiated.
- The workflow processes the invoice.
- The invoice is routed for approval.
Automates file-driven business processes, reduces manual intervention, and improves operational efficiency.
How does File System Trigger execute a workflow?
The execution sequence is as follows:

Navigate to the “Process > Triggers” page.

The Triggers page is rendered below, showing the Manage Email Triggers page by default.

Select the "Triggers > File System".

The “Manage File System Triggers” page is rendered as shown in the example below. Use the “Search” text box to filter the results.

Create a File System Trigger.
Select the “Actions > Create” menu option on the Manage File System Triggers page. Specify the folder that FlowWright monitors for incoming files. Specify which files should be considered by the trigger. Select the checkbox to extend monitoring to subdirectories under the configured folder. Select the workflow definition to execute when the trigger fires. Specify the name of the process variable or global variable used to store the trigger result. Click the checkbox to enable this file system trigger. Click the “Test” button to verify the configuration. Click the “Create” button to create the trigger. A confirmation message will display in the top-right corner.
Note: The FlowWright trigger service should run on the Windows Services page.

Edit a File System Trigger.
On the Manage File System Triggers page, select a trigger in the table, then click the “Actions > Edit” menu option.

The trigger details are rendered in a pop-up window for modifications.

After making changes, click “Update”. The file system trigger changes are updated, and a confirmation message is displayed in the top-right corner.

The configuration changes are visible in the Audit History Log.

Enable/Disable File System Trigger.
On the Manage File System Triggers page, select a trigger in the table, then click the “Actions > Enable/Disable” menu option.

The file system trigger is toggled between “enabled” and “disabled”. A confirmation message is displayed in the top-right corner.

Export the Trigger as XML.
On the Manage File System Triggers page, select a trigger from the table, then click the “Export > XML” menu option. The system generates the XML and downloads it to the local folder. Using the Import function, you can import this trigger configuration into the target FlowWright environment.

The XML content is included here as an example. The script includes the trigger definition name.

Export the Trigger as SQL.
On the Manage File System Triggers page, select a trigger from the table, then click the “Export > SQL” menu option. SQL Server generates the SQL and downloads it to the local folder. Using SQL Server Management Studio, you can execute this SQL query to insert the trigger configuration into the target FlowWright database environment.

The SQL content is included here as an example. The script includes the trigger definition name.

Import the Trigger as XML.
On the Manage File System Triggers page, select a trigger from the table, then click the “Import > XML” menu option.

Select the XML from the local folder and click “Upload”.

The XML configuration imports and overwrites the trigger with the same definition name. A confirmation message is displayed in the top-right corner.

Remove the Trigger.
On the Manage File System Triggers page, select a trigger in the table, then click the “Actions > Remove” menu option.

Click OK to confirm.

The file system trigger is removed permanently, and a confirmation message is displayed in the top-right corner.

The configuration changes appear in the Audit History Log.
