Send Message to Queue
This activity allows an author to configure a workflow to send a message to a queue by specifying the workflow instance ID, queue name, message type, and message in order to coordinate work between workflows and activities.
- The message queue name cannot be null or empty, and you cannot use workflow instance ID, task instance ID, or task step instance ID as a queue name, because doing so causes the activities to fault at run time.
- Empty GUIDs are not allowed.
- Leading and trailing spaces are trimmed in the queue name; otherwise, the queue name is invalid.
- A queue must be created before sending a message.
- The workflow instance should be running before sending a message. If it is not running, the instance is not loaded/restarted.
Queue Configuration Properties
You are required to configure these properties for this activity.
Property | Value | Description |
---|---|---|
Queue Name | User-defined; GUID; String |
Specifies the name of the message queue, which is scoped to this workflow instance. This value can be configured using a literal value, expression, or bind. |
Workflow Instance ID | User-defined | Specifies the unique identifier that is scoped to the queue name. The default value of the property must be bound to the Workflow.Instance ID property. |
Message Input Properties
Property | Value | Description |
---|---|---|
Message Type | User-defined | Specifies the data type of the message being sent, which is scoped to this workflow instance. |
Message | Depends on Message Type |
Specifies the message being sent to another queue, which can be bound to the Receive Message from Queue activity. This value can be configured using a literal value, expression, or bind. |