Queue Control
- Last UpdatedJun 10, 2024
- 1 minute read
The Queue control is used to group resources as a common pool and assign tasks to the group.
To add Queue control using a panel:
-
Before adding the Process Designer control in a panel, Create an ASP.NET Project in Visual Studio .NET.
-
Go to Queue.aspx.cs page.
-
Make sure that you have initialized the User Context object as per the steps given in Create User Context.
-
In the underlying code, create a new instance of control and add the instance to the panel in the Page_Load as in the example below:
Skelta.Core.ApplicationObject application = new Skelta.Core.ApplicationObject ("Telematics Repository");//Repository name
object loggedinUserId = "81734457-B3DB-4BC9-894A-C3149828C65C";
Skelta.Entity.UserContext userContext = new Skelta.Entity.UserContext (loggedinUserId, application, "skeltalist");
Skelta.HWS.Web.QueueControl.QueueControl que = new Skelta.HWS.Web.QueueControl.QueueControl();
que.ID = "Q1"; //This is mandatory.
que.ApplicationName = userContext.Repository.ApplicationName; //Provide Application or Repository name. This is mandatory.
que.UserIdString = userContext.LoggedInUserId; //Provide user id string. This is mandatory.
Panel1.Controls.Add (que);
Different Properties that can be set for Queue control are:
-
ApplicationName - Provide the application or repository name where Queue has to be created.
-
UserIdString - Provide the actor UserIdString who wants to create or view the queue. By default, the user who creates the Queue will be the owner of the queue. Click Create User Context to view the different UserIdString formats.