![work queue work queue](http://ccl.cse.nd.edu/software/workqueue/WorkQueueLogoSmall.png)
Queue in Python can be implemented by the following ways:
![work queue work queue](http://i.ytimg.com/vi/PKj4-4GvcxY/maxresdefault.jpg)
This article covers the implementation of queue using data structures and modules from Python library. There are various ways to implement a queue in Python. Rear: Get the last item from queue – Time Complexity : O(1).Front: Get the front item from queue – Time Complexity : O(1).If the queue is empty, then it is said to be an Underflow condition – Time Complexity : O(1) The items are popped in the same order in which they are pushed. Dequeue: Removes an item from the queue.If the queue is full, then it is said to be an Overflow condition – Time Complexity : O(1) ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.When this is not the case, the benefits of Active Work Queues will not be realized.
#Work queue how to#
Blue Prism uses the active queue configuration to determine how to achieve that target.Īctive Work Queues are only useful when running dozens of sessions for one process. Instead of creating sessions separately in Control Room and then moving to the queue management page to see the results, active queues allow you to set a target number of resources which should be working the queue. These sessions are started in Control Room manually, or via a scheduler service which is running on a Blue Prism Server instance.Īctive queues introduce an alternative mechanism for managing the sessions which work the queues, made possible by creating a closer association between work queues and sessions. Using the traditional session management model, sessions are started on resources which poll the work queue for cases to work. The Priority of an item cannot be changed after it has been added to the queue. The Priority for a Work Queue item is done when the item is first added to the queue using the Add To Queue action. When designing an automated solution, you should consider if any different work types or scenarios within the process should be worked before the other worked items. Remember, the Item Status can be returned as an output from the Get Next Item action.
![work queue work queue](http://i.ytimg.com/vi/pl3BekaKNCY/hqdefault.jpg)
To use the Item Status, simply add decision stages to your process that checks the Item Status so that any parts of your process that have already been done for the item can be skipped. Your process can also be configured to use the item status to ensure steps within your process that should never be repeated. The following screenshot explains the above steps clearly − Using Status
#Work queue update#
Set the Status Input Parameter to be the Status that you want to update the Work Queue item with. Set the Item ID Input Parameter to be the Item ID for the Work Queue Item you wish to assign a status to. In the Action Properties do the following − The following steps will be required −Īdd an Action stage into your process flow Setting the Status for a Work Queue item simply requires the use of an Action stage. The status can be used as a method of recording what work has been done so far on a Work Queue item The following screenshot explains the above steps clearly − StatusĮach Work Queue item has a status. Set the Tag Input Parameter to be the Tag that you want to remove from the Work Queue item. The item does not need to be locked to remove a Tag. Set the Item ID Input Parameter to be the Item ID for the Work Queue Item you wish to un-tag. In the Action Properties, perform the following − To remove a Tag, follow the below steps in Process Studio −Īdd an Action stage into your process flow. Removing a Tag from a Work Queue item also requires the use of an Action stage. Set the Tag Input Parameter to be the Tag that you want to add to the Work Queue item. The item does not need to be locked to add a tag. Set the Item ID Input Parameter to be the Item ID for the Work Queue Item you wish to tag.
![work queue work queue](https://i.ytimg.com/vi/lKomOqYU4Mw/maxresdefault.jpg)
Select the Internal – Work Queues Business Object. In the Action stage, perform the following actions − Add an Action stage into your process flow. Adding tagsĪdding a Tag to a Work Queue item simply requires the use of an Action Stage. TagsĪ Tag is a keyword of term assigned to a Work Queue item as a method of categorizing or grouping that item. Work queues are created in System Manager, the administrative are of Blue Prism. The tab is divided into two: a list of queues is shown in the upper half, and the lower half shows a list of the items in a queue. The Queue Management tab in Control Room provides the operational user interface for work queues. A process can use different work queues and a work queue can be shared by multiple processes if required. A work queue is an internal configurable list that enables a Process to manage its workload.