Customize the theme for process integration


The following tags are used to integrate business processes in the theme. These tags are part of the portal tag library. See Create your own theme for more information about tags used by portal themes.

<wps:pendingTasks/>

Notifies the user whenever a new, unclaimed task has been assigned. This tag provides two scripting variables.

  • numberOfTasks: The number of unclaimed tasks.
  • myTasksPageURL: The url of the page that contains the MyTasks portlet.

Example:

   <portal:pendingTasks>
      <a href="<%= myTasksPageURL %>"> You have: <%= numberOfTasks %> tasks. </a>
   </portal:pendingTasks>

When unclaimed tasks are queried and presented on a per request basis, the user always sees the latest number of tasks. However, this can lead to performance degradation. Therefore you can enable caching by setting the processintegration.pendingtasks.lifetime property in the ConfigService.properties file. Using the processintegration.myTasksPageUniqueName property, you can set the unique name of the page for which the url is provided as the myTasksPageURL.

As the tag makes use of the human task manager JNDI name property (processintegration.htmJndiName), verify is set accordingly. See Configure the business process container for portal for more information.

In some cases, a potential owner can claim a task before another potential owner's pending tasks notification is refreshed. In this case, the task would not appear in the second user's task list when he or she clicks the notification.

<wps:closePage/>

Provides a URL that closes an open task page. This URL does not complete the associated task. This tag can be used to help the user reduce the number of open task pages that appear under the My Tasks page. The url to close the page is available as a scripting variable.

This tag can only be used inside the <wps:navigationLoop> tag.

Example:

  <portal:closePage>
     <a class="wpsToolBarLink" href="<%closePageURL.write(out);%>"> X </a>
  </portal:closePage>

When there are more than one open task pages, one of the siblings of the page that was closed is selected as the current page in the next request. If there are no open task pages remaining, the task list page is selected as the current page for the next request.

 

See also

Home |