Configuring Guided Procedures with the Universal Worklist

Use

You can configure your system so that the tasks generated in Guided Procedures (GP) workflows, both on local and remote systems, are displayed in the Universal Worklist (UWL) together with the tasks pertaining to other SAP Enterprise Portal work areas.

You can either use a local GP system or connect remotely to another GP system. If you are connecting remotely to the GP system, you first have to create a portal system and then register it and assign a system alias. If you are using a local GP system, you directly create the system alias without creating a portal system.

You perform the configuration steps on the consumer side:

  1. Create a portal system, specifying the host name, HTTP port of the GP tasks provider and, if available, the WSDL of the relevant service.

    You execute this step only if you are connecting remotely to the GP system.

  2. Register the system as the item provider for UWL and configure it for remote access.

    You establish the connection between GP and the UWL by assigning a system alias.

  3. In UWL, browse, track and forward all pending GP tasks assigned to your user.

    You can only view tasks assigned to your user, that is, the logon ID of the user on both systems must match.

You access the UWL at the top navigation level of the portal using Home  → Work. The Home tab is covered by the Standard User portal role (eu_role).

For more information:, see Managing Tasks and Alerts in the Universal Worklist .

Prerequisites

  • You have the System Admin portal role assigned, in order to create portal systems and aliases. For more information, see Administration Roles .
  • You the Standard User role or the or Every User Core Role assigned, in order to access UWL in the portal.

    For more information, see:

    Configuring the Universal Worklist

    Mapping Portal Users to System User .

  • You know the host name of the system from which you want to retrieve GP tasks.

Procedure

1. Create a Portal System

You need to create a portal system only if you are connecting remotely to the GP system. If you are using a local GP system, you directly register a system alias.

  1. In the portal, navigate to System Administration  → System Configuration  → System Landscape.
  2. Select a preferred location in the Portal Content catalog and create a new system.

    From the context menu, choose New  → System (from template).

  3. Under Available Templates select the Web Service Systemradio button.
  4. On the General Propertiesscreen, enter the System Name, System IDand Master Languagefor the new system and choose Next.
  5. Choose Finish and open the system object for editing.
  6. From the Show Categorydropdown menu, select Web Service.
    1. On the right-hand side of the screen, choose the Modifypushbutton.
    2. In the WSDL URLfield, enter the host name and port of the GP task service in the format http://<host>:<port>/GPWorkItemProvider/Default?wsdlor http://<host>:<port>/.
    3. Choose Save.
  7. From the Displaydropdown menu, select System Aliases.
    1. Enter an arbitrary but meaningful name for the system alias, for exampleGPRemote.
    2. Choose Addand save the changes.
  8. Optionally, you can test the connection on the Connection Testsscreen.

For more information about creating portal systems, see Running the System Landscape Wizard .

2. Register a System Alias as Item Provider for UWL

  1. In the portal, navigate to System Administration  → System Configuration  → Universal Worklist & Workflow   → Universal Worklist - Administration.
  2. Create an alias by choosing New and enter a name for the system alias.

If you are connecting remotely to the GP system, you must use the name of the portal system you created previously as a system alias name.

  1. From the Connector Type dropdown box, select the GuidedProceduresConnector and choose Save.
  2. To configure UWL item behavior, use the Click to Administrate Item Types and View Definitions link.
    1. From the Current Configurations tab page, download the uwl.gp.config file and add an item type for the alias you have created.
      The name of the item type must be a concatenation of the uwl.task.gp string and the alias name, for example
      uwl.task.gp.GPRemote
      .
    2. Save the file and upload it using the Upload New Configuration tab page.

      Specify uwl.gp.config as the configuration name and browse to find the file on your file system.

    3. Choose Upload.
    4. Log off and then log on again.

For more information about administering the UWL provider systems, see Registering the Provider Systems .

3. Manage GP Tasks in the UWL

  1. Access the UWL at the top navigation level of the portal using Home → Work → Universal Worklist.

    UWL only displays items created in the last 120 days.

  2. You can do the following:
    • Launch a task

      From the task list, select a task, and from its context menu choose Open Task.

    • Forward a task to another user

      From the task list, select a task and from its context menu choose Forward.

      For more information, see Forwarding Tasks .

You can forward tasks only if you are using SAP enhancement package 1 for SAP NetWeaver Composition Environment 7.1 or higher.

  • Check the status of a task

    Open the Trackingtab page and from the dropdown menus next to Show, choose which tasks you want to track, such as the tasks that are In Progress.

    For more information, see Tracking Tasks .

Example

In the example XML configuration below, replace
<HOST>:<PORT>
with the host name and port of the item provider.

For each item type, you may use a different system alias as long as it matches the one specified for the remote provider system from which you want to retrieve GP tasks.

In the example XML configuration below, the GPRemote alias is used.

XML Configuration for Local System Aliases
<ItemTypes>
  <!-- local system with system alias  [GPSystem] code for enabling handover -->
  <ItemTypeconnector="GuidedProceduresConnector"defaultAction="launchGP"defaultView="uwlTaskGPView"executionMode="default"name="uwl.task.gp.GPSystem">
     <Actions>
        <ActiongroupAction="no"handler="IViewLauncher"launchInNewWindow="no"launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"launchNewWindowName="GPWindow"name="launchGP"referenceBundle="launch_sap"returnToDetailViewAllowed="yes">
           <Properties>
              <Propertyname="DynamicParameter"value="app.processId=${item.processID}&amp;app.taskId=${item.activityID}&amp;"/>
              <Propertyname="page"value="pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance2"/>
              <Propertyname="System"value="SAP_LocalSystem"/>
           </Properties>
           <Descriptionsdefault="Open Task"/>
        </Action>
        <ActiongroupAction=""handler="GPActionHandler"launchInNewWindow="no"name="forward"referenceBundle="forward"returnToDetailViewAllowed="no">
           <Properties>
              <Propertyname="userIdList"value="${users}"/>
              <Propertyname="display_order_priority"value="3"/>
           </Properties>
           <Descriptionsdefault="Forward"/>
        </Action>
     </Actions>
  </ItemType>
 
 
  <!-- remote system with system alias [GPRemote] code for enabling handover -->
  <ItemTypeconnector="GuidedProceduresConnector"defaultAction="launchItem"defaultView="uwlTaskGPView"executionMode="default"name="uwl.task.gp.GPRemote">
     <Actions>
           <Actionname="launchItem"groupAction=""handler="UrlLauncher"returnToDetailViewAllowed="yes"launchInNewWindow="no">
                 <Properties>
                    <Propertyname="app.taskId"value="${item.activityID}"/>
                    <Propertyname="url"value="http://HOST:PORT/webdynpro/dispatcher/sap.com/caf~eu~gp~ui~rt/Runtime"/>
                    <Propertyname="app.processId"value="${item.processID}"/>
                 </Properties>
                 <Descriptionsdefault="Open Task"/>
           </Action>
        <ActiongroupAction=""handler="GPActionHandler"launchInNewWindow="no"name="forward"referenceBundle="forward"returnToDetailViewAllowed="no">
           <Properties>
              <Propertyname="userIdList"value="${users}"/>
              <Propertyname="display_order_priority"value="3"/>
           </Properties>
           <Descriptionsdefault="Forward"/>
        </Action>
        </Actions>    
  </ItemType>
  
  <!-- local system with system alias  [GPSystem] code for enabling tracking -->
  <ItemTypeconnector="GuidedProceduresConnector"defaultAction="launchGP"defaultView="uwlTaskGPView"executionMode="default"name="uwl.request.gp.GPSystem">
     <Actions>
        <ActiongroupAction="no"handler="IViewLauncher"launchInNewWindow="no"launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"launchNewWindowName="GPWindow"name="launchGP"referenceBundle="launch_sap"returnToDetailViewAllowed="yes">
           <Properties>
              <Propertyname="DynamicParameter"value="app.processId=${item.processID}&amp;app.taskId=${item.activityID}&amp;"/>
              <Propertyname="page"value="pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance2"/>
              <Propertyname="System"value="SAP_LocalSystem"/>
           </Properties>
           <Descriptionsdefault="Open Task"/>
        </Action>
        <ActiongroupAction=""handler="GPActionHandler"launchInNewWindow="no"name="forward"referenceBundle="forward"returnToDetailViewAllowed="no">
           <Properties>
              <Propertyname="userIdList"value="${users}"/>
              <Propertyname="display_order_priority"value="3"/>
           </Properties>
           <Descriptionsdefault="Forward"/>
        </Action>
     </Actions>
  </ItemType>
 
 
  <!-- remote system with system alias [GPRemote] code for enabling tracking -->
  <ItemTypeconnector="GuidedProceduresConnector"defaultAction="launchItem"defaultView="uwlTaskGPView"executionMode="default"name="uwl.request.gp.GPRemote">
     <Actions>
           <Actionname="launchItem"groupAction=""handler="UrlLauncher"returnToDetailViewAllowed="yes"launchInNewWindow="no">
                 <Properties>
                    <Propertyname="app.taskId"value="${item.activityID}"/>
                    <Propertyname="url"value="http://HOST:PORT/webdynpro/dispatcher/sap.com/caf~eu~gp~ui~rt/Runtime"/>
                    <Propertyname="app.processId"value="${item.processID}"/>
                 </Properties>
                 <Descriptionsdefault="Open Task"/>
           </Action>
        <ActiongroupAction=""handler="GPActionHandler"launchInNewWindow="no"name="forward"referenceBundle="forward"returnToDetailViewAllowed="no">
           <Properties>
              <Propertyname="userIdList"value="${users}"/>
              <Propertyname="display_order_priority"value="3"/>
           </Properties>
           <Descriptionsdefault="Forward"/>
        </Action>
        </Actions>    
  </ItemType>
  
  
  
</ItemTypes>