clsPublishMSMQ Step

Last published at: May 14th, 2024

Description:

Publish/Send Messages to Queue.  

Inputs

  • machineName –Server Name where Message queue exists (Is Required)
  • queueName – The Queue to send message (Is Required)
  • IsPublic – To check queue is public or private
  • messageLabel – Label for message
  • messageBody – Message Body to send    

Returns

  • True – step executed successfully
  • False – step failed to execute

Usage:

MSMQ is a queue service built into Microsoft Windows operating system, for more information please look at Windows documentation on MSMQ.

Example:

Let’s build and execute the clsPublishMSMQDef example.              

  • Create a new definition called “clsPublishMSMQDef”
  • Select the definition and click the “design” button
  • Drag a clsPublishMSMQ step to the canvas
  • Connect the dots between the start and clsPublishMSMQ step
  • Click on the “clsPublishMSMQ” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Save the process definition, create a new process instance and execute. The process step should publish/send messages to the queue, as configured.