Back Forward Composite Manager portal — Process Work gadget
How to process assignments in bulk

  Show all 

The Bulk Processing area of the Process Work gadget in the Manager portal lets managers select all work objects that match a set of criteria and process them at the same time.

bulk processing

For example, you can transfer assignments from one operator (within your group) to another or from one workbasket to another, or apply the same flow action to all the assignments on a worklist. You can wait and watch as the system processes the assignments, or send the processing to an agent that processes them in background mode.C-424 For another example, see Pega Developer Network article PRKB-26173 How to perform bulk processing for a large number of assignments.

 To transfer assignments from a worklist or workbasket

To transfer assignments in bulk:

  1. Select the Process Work gadget on the left navigation panel.
  2. In the Bulk Processing panel, the Transfer work from field is a dropdown list of all available operator IDs. The or from field is a dropdown list of all available workbaskets. Choose an item from either list.
  3. A Work Item tab appears with an array of all the work items that whose current owner or workbasket matches your selection. Check the checkbox to the left of each one to select it, and choose an operator or a workbasket to send the selected work objects to, from the dropdown menus that appear.
  4. If you want the process to run in the background, check the Run in background? checkbox.
  5. When you are ready, click Process Assignments. a check mark appears beside the ID of each work object that was transferred successfully.

You can continue to process other work objects, sending them to the same or other destinations, or close the Work Item tab to complete this process.

 To apply one flow action to multiple assignments

For an operator

  1. Select the Process Work gadget on the left navigation panel.
  2. In the Bulk Processing panel, select an operator in the first Bulk process for dropdown list, and select a work type from the dropdown list to its right.
  3. The with action dropdown list displays valid options for the choices you have made. Select the action you want to use.
  4. A Work Item tab appears. At the top is a list of the work objects that match your selection criteria. Check the checkboxes to the left of those you wish to process.
  5. At the bottom of the display are fields where you can enter information relevant to the action you selected.
  6. Check the Run in background? checkbox to have the process run in the background.
  7. When you are ready, click Process Assignments. In the report that appears, a check mark OK indicates each updated assignment, and an X for work objects where the assignment failed. To access an error message, hold the mouse pointer over the X to view a ToolTip.

When you are finished processing work objects, close the Work Item tab.

For a workbasket

  1. Select the Process Work gadget on the left navigation panel.
  2. In the Bulk Processing panel, select a workbasket in the second Bulk process for dropdown list, and a work type from the dropdown list to its right.
  3. The with action dropdown list displays valid options for the choices you have made. Select the action you want to use.
  4. A Work Item tab appears. At the top is a list of the work objects that match your selection criteria. Check the checkboxes to the left of those you want to process.
  5. At the bottom of the display are fields where you can enter information relevant to the action you selected.
  6. Check the Run in background? checkbox to have the process run in the background.
  7. When you are ready, click Process Assignments. In the report that appears, a check mark OK indicates each updated assignment, and an X for work objects where the assignment failed. To access an error message, hold the mouse pointer over the X to view a ToolTip.

 Bulk Process by Work Type

To process assignments by work type: GRP-2760

  1. Select the Process Work gadget on the left navigation panel.
  2. In the Bulk Processing panel, select a Work Type from the options in the Bulk process by work type dropdown list.
  3. A Work item tab appears. At the top is a list of the work objects of the type you selected. Check the checkboxes to the left of those you want to process.
  4. In the lower part of the tab select a flow action to begin bulk processing. Depending on the flow action you choose, further fields may appear where you can specify values such as the workbasket or operator ID to transfer the work objects to. Click Process to begin the operation. a check mark OK indicates each updated assignment, and an X for work objects where the assignment failed. To access an error message, hold the mouse pointer over the X to view a ToolTip.

 Bulk Process Cover

To process assignments by cover:

  1. Select the Process Work gadget on the left navigation panel.
  2. In the Bulk Processing panel, select a cover class in the Bulk process cover dropdown menu. Provide the ID of the cover you want to process in the Cover ID field Enter the first two letters of the ID to get a list of options to choose from.
  3. Click Process Cover. A Work item tab appears. At the top is a list of the work objects in the cover you specified. Check the checkboxes to the left of those you want to process.
  4. In the lower part of the tab select a flow action to begin bulk processing. Depending on the flow action you choose, further fields may appear where you can specify values such as the workbasket or operator ID to transfer the work objects to. Click Process to begin the operation. a check mark OK indicates each updated assignment, and an X for work objects where the assignment failed. To access an error message, hold the mouse pointer over the X to view a ToolTip.

 Bulk Process Folder

To process assignments by folder:

  1. Select the Process Work gadget on the left navigation panel.
  2. In the Bulk Processing panel, select a folder in the Bulk process folder dropdown menu. Provide the ID of the cover you want to process in the Folder ID field Enter the first two letters of the ID to get a list of options to choose from.
  3. Click Process Folder. A Work item tab appears. At the top is a list of the work objects in the folder you specified. Check the checkboxes to the left of those you want to process.
  4. In the lower part of the tab select a flow action to begin bulk processing. Depending on the flow action you choose, further fields may appear where you can specify values such as the workbasket or operator ID to transfer the work objects to. Click Process to begin the operation. a check mark OK indicates each updated assignment, and an X for work objects where the assignment failed. To access an error message, hold the mouse pointer over the X to view a ToolTip.

 About background processing by the Pega-ProCom agent

If you need to transfer or process dozens or hundreds of assignments, it may be preferable to perform this processing in background, and be notified with an email message when the processing is complete. The Pega-ProCom agent includes an activity that provides such processing.

To use this facility:

  1. Review the Data-Agent-Queue instances on your system; there is one for the Pega-ProCom agent on each node. Ensure that the row identifying the AgentBulkProcessing activity is enabled on at least one node, and that the overall Enable this agent? box is selected for that node.
  2. Ensure that an email account data instance (Data-EmailAccount class) is defined to send email from your application.
  3. For each manager who is to use this facility, ensure that a valid email address is present in the Operator tab of the Operator ID form.
  4. Complete input values for one of the Bulk Processing facilities. Select the Run in Background checkbox.
  5. When you start the process, it will run in the background and you can go on to other areas of the application. Background processing may take minutes or hours, depending on the number of work objects involved.
  6. When background processing by the Pega-ProCom agent is complete, the agent sends an email message listing the count of assignments selected and processed, and a list of the keys of assignments not processed. (Bulk processing may be unable to complete assignments for various reasons, including the inability to acquire a lock.)

How it works

When you click the Process Assignments button, the system creates an instance of the Assign-Schedule-Future class, which serves to notify the Pega-ProCom agent that a bulk processing request is pending. It changes the owner of assignments to be processed to the reserved value pyBulkProcessing, so that they are no longer on the original worklist or workbasket.

As it processes assignments, the Pega-ProCom agent temporarily creates instances of the Assign-Schedule-InterimResults class. When processing is complete, it forms and sends the email message.

 Notes

 Improving performance of bulk processing

TipIf your system accesses the PegaRULES database using a JDBC 2.0 driver, you may improve database update performance by enabling an optional driver capability for batched updates. PROJ-545 This benefit also applies to external databases when accessed as external classes. DSILA 3/23/07

CautionNot all JDBC 2.0 drivers correctly implement this capability. As of May 2007, Pegasystems has verified this capability with specific drivers including UDB 9.1 and Z/OS DB2. Other vendors are reportedly addressing compliance. Contact Global Customer Support for the latest information. ANILD 5/4/07

To allow Process Commander to use SQL prepared statements to batch updates for improved performance on row inserts, updates, and deletes:

  1. To enable this feature for every SQL database, add the following line to the prconfig.xml file:

<env name="database\batchUpdates" value="nn" />

        where nn is a positive integer setting a maximum count for the number of rows to be batched.

  1. To enable this feature for a single SQL database that is configured through the prconfig.xml file, add the following line:

    <env name="database\databases\zzzzzz\batchUpdates" value="nn" />

    where nn is a positive integer setting a maximum count for the number of rows to be batched and zzzzzz is the name of the datasource. BUG-4825 (You can't use this option when the database is configured on the Database form or through application server datasources.) DSILVA 5/10/07
  1. Redeploy and restart.

Typically, set a value between 5 and 30; vendor documentation and experimentation may provide guidance for a good value. Setting this value to 0 or 1 is equivalent to no batching.

When enabled, this feature applies to all processing — including any Commit operations of two or more objects — but may improve the performance of bulk processing by as much as 20 percent.

 Related PDN articles

See the Pega Developer Network article PDNPRKB-25992 Why doesn't the pre-processing activity run with Bulk Processing?.

Definitions bulk processing, profile, sample application, transfer, urgency, worklist, work pool name, work type
Related topics Using work object forms
Understanding the Pega-ProCom agent

UpAbout Composite portals