Updated on 2025-08-15 GMT+08:00

Managing Queues in Applications

What Is a Queue?

A queue records a set of members with the same permissions and task objects. Compared with roles or public groups, queues have more functions. In addition to multiple users, portal users, public groups, roles, or roles with subordinates, the following functions are supported:

  • Bind one or more objects. If a queue is bound to objects, user tasks (such as approval processes) involving these objects will be delivered to the queue members for processing.
  • You can configure a public mailbox for a queue to receive public notification emails.
  • This API is used to send emails to queue members.

Create MQ

  1. Log in to the Huawei Cloud Astro Zero console and click Access Homepage. The application development page is displayed.
  2. In the upper left corner of the page, click and choose Environments > Environment Configuration.
  3. Choose Maintenance from the main menu.
  4. In the navigation pane, choose Global Elements > Queues and click New.
  1. Set basic queue information and add members to the queue.

    Table 1 Parameters for creating a queue

    Parameter

    Description

    Label

    Label of the queue, which will be displayed on the console.

    Value: 1–64 characters.

    Name

    Name of a queue, which uniquely identifies a queue in the system.

    The value must start with a letter and can contain only letters, digits, and underscores (_). It cannot end with an underscore (_).

    Public Email

    Public email address of the queue, which is used to send emails to the queue when an event is triggered.

    Queue Manager

    The administrator who creates a work queue can assign tasks to other members in the work queue.

    Send Email to Members

    Send Email to Members: indicates whether to send an email to users in the queue if an event is triggered.

    Email Template

    If you select Send email to members, you need to select an email template.

    Queue Objects

    Indicates whether to set the queue object. If Queue Objects is selected, select the objects to be allocated to the queue. Then the personal records of these objects belong to the queue.

    Queue Member

    In the Queue Member area, click Add to add members to the work queue.

    You can add single users, other groups, single roles, roles with subordinates, or portal users to the queue. If you add a role to the queue, all users granted the role also belong to this queue.

  2. Click Save.

Using a Queue

After the queue is created, set the queue in a BPM lane configuration and set the current lane as the recipient in the user task. The user task diagram elements in the lane are processed by the members in the queue corresponding to the lane. For details, see User Activity.
Figure 1 Setting a lane
Figure 2 Setting the current lane as the recipient