Warewolf Queue Triggers allows users to schedule an execution of a Warewolf service triggered by a new queue entry into a queue your trigger is set to listen to.
Warewolf Queue Triggers utilizes the RabbitMQ server as it’s queue driver.
- From the sidebar of your studio select Triggers and click on Queues.
- Click Create a new queue.
- Add the Name you want to use to refer to this Queue trigger.
- Select the Queue Source of the queue you want to listen to.
- The name of the Queue as it appears on the queue server of the source provided. It will be created if it does not exist. It can be the same as the Name in Step 3.
- Select the Workflow to run when the Queue receives a new message by clicking
…button to choose the workflow you want to execute.
This will return a popup resource picker as follows:
Select your workflow and Click Ok
- Set the Concurrency of the Queue. This is the number of workflows that can execute in parallel limited by the number of threads available at run time.
- Each workflow must be executed with the correct security context. The account details entered here will be passed to the server and execute the workflow as that user.
- Options build with the selected Queue Source.
Select Durable if the queue needs to survive a restart.
- On Error allows the user to select a Queue to send messages that hold failed messages as these might be needed by the user to diagnose the error of just re-queue messages. Set the Queue Source to the source you would like the Dead letter Queue sent to and under which Queue this be sent. Any other additional settings on the queue can be set under Options.
- Map the entire message will put the full response from the queue into one variable for you to unpack in your workflow. If Map Entire Message is not selected, then the user can paste XML, JSON, or plain text received by the queue.
- The History lists from ExecutionId, Start Time, End Time, etc, of all the executions of the Trigger.
For an example follow this link: Warewolf Queue Triggers Example