Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 14, 2007 at 04:15 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 13, 2007 at 07:44 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Jeremy Good Khaleelurrehman Badeghar

      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