Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


English

You can use this code block and put into the Bean Shell for Process Participant in Map Participants to Users.

In this piece of code, we will get all the users from the group with ID "G-001". Then, we will traverse through each user and obtain each user's assignment count.

The first user with the least assignment count will be picked as the assignee of the current assignment. You may use this as a reference to your future coding needs.


Thai

คุณสามารถใช้บล็อกรหัสนี้และใส่ลงใน Bean Shell for Process Participant ใน Map Participants to Users

ในส่วนของรหัสนี้เราจะรับผู้ใช้ทั้งหมดจากกลุ่มที่มี ID "G-001" จากนั้นเราจะสำรวจผู้ใช้แต่ละคนและรับจำนวนการมอบหมายของผู้ใช้แต่ละคน

ผู้ใช้รายแรกที่มีจำนวนการมอบหมายน้อยที่สุดจะถูกเลือกเป็นผู้รับโอนการมอบหมายปัจจุบัน คุณสามารถใช้สิ่งนี้เป็นการอ้างอิงถึงความต้องการการเข้ารหัสในอนาคตของคุณ

...