MSMQ Triggers

Use this feature to manage MSMQ Triggers.

Last published at: November 13th, 2026

FlowWright's MSMQ Trigger feature automatically starts a workflow when a message arrives in a configured Microsoft Message Queuing (MSMQ) queue. It provides a message-based integration mechanism between FlowWright and other Windows applications, services, and enterprise systems. For example, when an ERP application publishes a purchase order message to an MSMQ queue, FlowWright can receive it and automatically initiate a Purchase Order Processing workflow. Instead of an external application directly calling FlowWright APIs to initiate a workflow, it can publish a message to MSMQ.

Consider an organization that operates an ERP system and uses FlowWright to automate purchase order approvals.

Without MSMQ Trigger:

  • An employee creates a purchase order in the ERP system.
  • The ERP application needs to communicate with FlowWright.
  • The ERP application invokes a FlowWright API to initiate a workflow.
  • FlowWright creates a process instance.
  • The workflow processes the purchase order.

With MSMQ Trigger:

  • An employee creates a purchase order in the ERP system.
  • The ERP application publishes a purchase order message to an MSMQ queue.
  • FlowWright monitors the configured destination queue.
  • MSMQ Trigger receives the incoming message.
  • FlowWright automatically launches the configured Purchase Order workflow.
  • The workflow processes the purchase order.
Business benefit:

External Windows applications can initiate FlowWright workflows through message queues without requiring direct API integration.

 

How does MSMQ Trigger execute a workflow?

The following illustrates the intended execution lifecycle.

 

Navigate to the “Process > Triggers” page. 

 

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

 

Select "Triggers > MSMQ".

 

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

 

Create an MSMQ Trigger. 

Select the “Actions > Create” menu option on the Manage MSMQ Triggers page. Provide the machine name and the queue name. Click the checkbox to enable the configuration as Public. Specify the name of the workflow definition associated with the trigger. Specify the name of the process variable or global variable used to store the trigger result. Select the checkbox to enable the MSMQ connection. Click the “Test” button to verify the configuration. Click the “Create” button to create the trigger. A confirmation message will appear in the top-right corner. 

Note: The FlowWright trigger service should run on the Windows Services page.

 

Edit an MSMQ Trigger.

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

 

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

 

After making changes, click “Update”. The MSMQ Trigger changes are saved, and a confirmation message appears in the top-right corner. 

 

The Audit History Log shows the configuration changes.  

 

Enable/Disable MSMQ Trigger.

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

 

The MSMQ Trigger toggles between “enabled” and “disabled.” A confirmation message appears in the top-right corner.

 

Export the Trigger as XML.

On the MSMQ Triggers page, select a trigger from the table, then click the “Export > XML” menu option. The XML is generated and downloaded 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 specifies the trigger definition name. 

 

Export the Trigger as SQL.

On the MSMQ Triggers page, select a trigger from the table, then click the "Export > SQL" menu option. The SQL is generated and downloaded 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 specifies the trigger definition name. 

 

Import the Trigger as XML.

On the MSMQ 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 is imported, overwriting the trigger with the same definition name. A confirmation message appears in the top-right corner. 

 

Remove the Trigger.

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

 

Click OK to confirm. The trigger is permanently removed, and a confirmation message is displayed in the top-right corner. 

 

The Audit History Log shows the configuration changes.