+

Search Tips   |   Advanced Search


Customize the process integration theme

You can customize the portal themes to contain links that alert users to pending tasks and that close task pages after a task has been completed. Use the portal-dynamicui:pendingTasks JSP tag to provide alert links to pending tasks. Use the portal-dynamicui:closePage JSP tag to provide special links that close individual task pages. To work with the JSP tags that provide special links in process integration pages, follow these steps and refer to the code samples:

  1. Understand the two scripting variables of the portal-dynamicui:pendingTasks JSP tag. This tag notifies the user whenever a new, unclaimed task has been assigned.

    numberOfTasks

    The number of tasks assigned to the user

    myTasksPageURL

    The URL of the page that contains the Task List portlet

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

    The behavior of this tag is affected by the following parameters specified in the Portal Configuration Service, WP ConfigService:

    • processintegration.pendingtasks.lifetime

    • processintegration.myTasksPageUniqueName

    To control how the variables for these parameters are specified for the corresponding pending task queries against the WebSphere Process Server, refer to the topics that explain how to modify the default configuration for business process integration.

    Sometimes a potential owner can claim a task before another potential owner's notification of the same pending task is refreshed. In this case, the task does not appear in the second user's Task List when he or she opens the notice.

  2. Understand the scripting variable of the portal-dynamicui-closePage JSP tag. This tag automatically detects if the rendered page is a task page. The URL provided as a scripting variable closes an open task page. The specified URL does not modify the associated task data and it does not complete the task.

    <portal-dynamicui:closePage>
      <a class="wpsToolBarLink" href="<%closePageURL.write(out);%>"> X </a>
    </portal-dynamicui: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 parent task page is selected as the current page for the next request. Adding this tag to the portal theme allows users to easily close open task pages in case they opened too many of them.

    This tag can only be used inside the portal-navigation:navigationLoop tag


Parent topic:

Customize process integration


Related tasks


Modifying process integration