Configure the Tasks tool

The Management Center allows for the display of up to 500 tasks from workspaces for a particular user. If you want to keep a list of tasks in your workspace that contains more than 500 tasks, you can configure the Web service to allow a larger amount to be displayed.

About this taskIf a user has more than 500 tasks in any one of the Approved, Canceled, To Do, or Completed folders in the Tasks tool, the Management Center does not display any tasks within that folder and instead displays one of the following messages:

  • There are too many To Do tasks to list.

  • There are too many Completed tasks to list.

  • There are too many Approved tasks to list.

  • There are too many Canceled tasks to list.

If users have more than 500 tasks, perform one or both of the following steps:

  • Clean up the workspace in the Workspace Administration Tool. This can be done only for tasks in the Approved or Cancelled folders.

  • Configure the get-data-config.xml file such that the services returns a subset of the total tasks. That is, for example return 500 of 2000 tasks, instead of throwing an error message. This is done by setting the maximum count parameter _wcf.maxRecords to a desired number, less than or equal to 500, in the get-data-config.xml file for the getTaskByStatus service. The tag name for this service in the get-data-config.xml file is getTaskDetailsByStatus.

    To configure workspaces to display a subset of 500 tasks only:

Follow the instructions for customizing and deploying the get-data-config.xml for the com.ibm.commerce.content component to include the following change in the custom extension file:
<expression-builder>
    <name>getTaskDetailsByStatus</name>
    <data-type-name>Task</data-type-name>
    <expression-template>{_wcf.ap=$accessProfile$;_wcf.maxRecords=$wc_maxRecords$}/Task[@status='$statusValue$']</expression-template>
    <param>
      <name>accessProfile</name>
      <value>IBM_Admin_Details</value>
    </param>
    <param>
      <name>wc_maxRecords</name>
      <value>500</value>
    </param>
  </expression-builder>