Cisco Cisco Process Orchestrator 3.1 User Guide

Page of 786
 
13-7
Cisco Process Orchestrator 3.1 User Guide
 
Appendix 13      Using Adapters
  Advance Message Queuing Protocol (AMQP) Adapter
Getting a Message
Use the Get Message activity to retrieve the next available message from a given queue on the AMQP 
broker. 
Note
This activity will open and close the channel to get one message; it is not designed to put it into 
a tight loop. This activity is considered to be a destructive way to get a message from an AMQP 
queue. The typical way is to subscribe to an AMQP queue. 
Step 1
In the Process Editor Toolbox, choose AMQP > Get AMQP Message, then drag and drop the activity 
onto the Workflow pane.
Step 2
Click the General tab and enter the required information.
Step 3
Click the Get Message tab and specify the information that describes the message to be retrieved, 
including:
  •
No Acknowledgment Mode—If this option is checked, no acknowledgment is sent after retrieving 
the message. The server will auto-acknowledge the message.
Step 4
Enter the information in the remaining tabs as necessary, then click Save to complete the activity 
definition.
Purging an AMQP Queue
Use the Purge Queue activity to remove all messages from a queue that are not awaiting acknowledgment 
on the AMQP broker. In the Process Editor Toolbox on the [AMQP Activity] property page, click the 
Purge Queue tab, then choose the queue to be purged.
Unbinding an AMQP Queue
Use the Unbind Queue activity to remove the binding between the queue and the exchange. After the 
binding has been removed, the queue will not receive any more messages until it is bound to another 
exchange. 
Step 1
In the Process Editor Toolbox, choose AMQP > Unbind AMQP Queue, then drag and drop the activity 
onto the Workflow pane.
Step 2
Click the General tab and enter the required information.
Step 3
Click the Unbind Queue tab and specify the information that describes the queue you want to unbind, 
including:
  •
Name—Name of the queue you want to unbind from an exchange.
  •
Exchange Name—Name of the exchange you want to unbind from a queue.
  •
Routing Key—The key the messages will be sent with.
  •
Arguments—Enter the name and value pair arguments for the queue