cancel
Showing results for 
Search instead for 
Did you mean: 

Queuing - Action Blocks (Queue Get, Queue Put , Queue List, Queue Delete)

0 Kudos

Does any one know how to use Queue Get, Queue Put, Queue List, Queue Delete

action blocks?

There is neither any help documentation nor any previous queries in the forum for this.

Thanks and Regards

Khaleel Badeghar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Khaleelurrehman,

1. Put something in your Queue:

Name: MyQueue

ID: 4711

Example:

- Make a ForNextLoop and use the Link Editor to fill the Queue with 10 entries.

- Use a Local XML Variable as Message and a Assignment to set the

Message text. So your Message will be:

"a Message with the ID " & For_Next_Loop_0.CurrentItem

- Put the Message and the ID in your Queue using the Link Editor

ID: 4700 + For_Next_Loop_0.CurrentItem

2. Replace something in your Queue:

Just refere to Queue-Name and Queue-ID to replace a Message with the

Queue-Put-Action.

3. Get one entry of your Queue:

Just refere to Queue-Name and Queue-ID to get the Message out of the Queue

with the Queue-Get-Action.

4. Get a List of entries from your Queue:

- Use the Queue-List-Action which will return a xMII-XML Structure with

DATE and ID.

- Use a Repeater to loop over the Output of Queue-List-Action.

- Use a Queue-Get-Action and assign the ID of the Repeater-Output to get the

Message for the ID.

5. Delete one Message in your Queue:

Use the Queue-Delete-Action to delete a Message with a specific ID from

your Queue.

6. Delete the whole Queue (or all Messages)

Use Queue-List-Action + Repeater to loop + Queue-Delete-Action

Hope this helps.

Ciao

Martin

jcgood25
Active Contributor
0 Kudos

So much for trial and error...

Former Member
0 Kudos

Former Member
0 Kudos

Try and Error is no fun when it's not obvious. I was trying to use it completly different and was getting useless data...

Answers (1)

Answers (1)

0 Kudos

Khaleelurrehman,

These action blocks simple write to an XML file and behave exactly the way you would expect them to.

Get - Get value from Queue, FIFO

Put - Write a value to a Queue

List - Get a list of valid Queues

Delete - Remove Queue from operation, deletes all values contained in the Queue.

Hope this helps.

-Sam

0 Kudos

Hi Sam,

Thanks for your reply.

I wanted to know what exactly is to be given in ID, QueueName in the configuration of Queue action blocks.

Thanks and Regards

Khaleel

jcgood25
Active Contributor
0 Kudos

Since the nature of the xMII product leads to creative innovation, sometimes trial and error is the best way to learn the specific behavior of action blocks like these. By using the link editor and Tracer actions, along with Windows Explorer to confirm the physical saved xml files, you should be able to figure out these action blocks quite easily.

Best Regards,

Jeremy Good