cancel
Showing results for 
Search instead for 
Did you mean: 

Hide some UWL tasks

Former Member
0 Kudos

Hi,

We are currently putting UWL in place with our portal. We are connecting UWL with an ERP back-end to retreive tasks from the back-end workflow.

We have some tasks that we want to see in UWL but some other tasks that should not appear in UWL. We have been able to configure it to show all tasks from the back-end system but how to configure UWL to retreive only required tasks from the back-end?

Regards,

Renaud

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We were able to do this using the following configuration:

<ItemTypes>

<ItemType name="uwl.HiddenTask" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">

<ItemTypeCriteria systemId="SAP_WebDynpro_XSS" externalType="TS12300116" connector="WebFlowConnector"/>

</ItemType>

</ItemTypes>

Kr,

Wim

Answers (7)

Answers (7)

Former Member
0 Kudos

If you don't want to include all of the possible tasks in your "SupportedItems" attribute, you can use this:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
  >
<UWLConfiguration version="1.0">
  <Views>
    <View name="DefaultView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task" columnOrder="statusIcon, subject, dueDate, creatorId, createdDate" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="top" referenceBundle="tasks">
      <DisplayAttributes>
        <DisplayAttribute name="priority" type="user" width="10" sortable="yes" format="default" referenceBundle="priority" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
          <Menu>
            <MenuItem name="Low" actionRef="priorityLow" referenceBundle="menu_priority_low"/>
            <MenuItem name="Normal" actionRef="priorityNormal" referenceBundle="menu_priority_normal"/>
            <MenuItem name="High" actionRef="priorityHigh" referenceBundle="menu_priority_high"/>
            <MenuItem name="VeryHigh" actionRef="priorityVeryHigh"/>
          </Menu>
        </DisplayAttribute>
      </DisplayAttributes>
      <AllowedFilters>
        <CompoundExpression logicalOperation="AND" defaultViewFilter="yes" referenceBundle="filter_task">
          <Expression name="itemType" value="uwl." comparator="StartsWith"/>	
          <Expression name="itemType" value="TS10407920" comparator="NotContains"/>			  
          <Expression name="itemType" value="TS90107917" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS90107929" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS90107919" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS90107933" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS90107932" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS14508056" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS90107934" comparator="NotContains"/>			  		  
          <Expression name="itemType" value="TS14507935" comparator="NotContains"/>			  		  		  
        </CompoundExpression>
      </AllowedFilters>	  
      <Actions>
        <Action reference="refresh"/>
      </Actions>
    </View>
  </Views>
</UWLConfiguration>

Former Member
0 Kudos

Hi,

Thanks for the information. You are right it works. On our side, we have edited the configuration file uwl.standard.xml. We have created a new view based on the object DefaultView that has only the list of tasks that we want to see appearing in that view :

supportedItemTypes="uwl.task.webflow.decision.TS90000111, uwl.task.webflow.decision.TS90000112"

We have also created a new navigationNode based on the Main one and pointing to the new view.

We had to modify the iView parameters to point to our new NavigationNode and View.

We have also uploaded a configuration file copied out of the configuration file created when we registered the back-end where we kept the only two tasks that we want to see appearing on the portal in order to modify their behavior. But just doing that step as proposing earlier in this thread, we realised that it was still taking the configuration of the configuration file created when we registered.

Thanks everyone!

Regards,

Renaud

chintan_virani
Active Contributor
0 Kudos

Landry,

Whenever you configure UWL, you always register your backend ECC system. This creates an XML configuration file. For e.g:- if system alias provided during UWL registration is SAP_ECC_TEST it should create a configuration file called uwl.webflow.SAP_ECC_TEST.xml

You can view this XML configuration in Portal . For this goto System Admin --> System Confgiration -> Universal Worklist & Workflow --> Universal Worklist Content Configuration --> Click to Administrate Item Types and View Definitions.

Select the configuration and download it. Make a backup of it and open the XML file in an editor.

Now delete all related entries for the tasks you do not want in your UWL. For eg. You don't want TS1xxxxx23 in your UWL to show up. Do a search in XML and delete all entries related to TS1xxxxx23.

Save the XML file. Now go back to Administrate Item Types and View Definitions., delete the existing configuration, and upload the new configuration. If ie fails then use the high priority option.

Also make sure you clear the UWL cache after making abobve changes.

Chintan

chintan_virani
Active Contributor
0 Kudos

Landry,

Were you able to resolve this? If yes then please mark the thread as answered.

Chintan

Former Member
0 Kudos

Hi,

Thanks for your answer although it does not help. I do not want to remove buttons from a task message display. I want the task not to appear in the list. Any other ideas?

Thanks

Renaud

Former Member
0 Kudos

Hi,

Thanks for the answer! Great news. Which XML file? I have been able to change what happens to a task when you open it in an XML file but have not been able to "not display" a task.

Are we talking about the same file or is there another configuration file?

Regards,

Renaud

Former Member
0 Kudos

Renaud,

Please refer to this thread.

Hope this helps.

Cheers,

Sandeep Tudumu

Former Member
0 Kudos

Hi,

Thanks for your answer. Although the issue we have is that there are some tasks that we still want the user to have in the back-end system that do not appear in UWL.

Is there a way, other than removing the task from the back-end, to have some tasks not appearing in UWL?

Regards,

Renaud

Former Member
0 Kudos

Yes. You can do this in the uwl config xml file.

Former Member
0 Kudos

UWL tasks are loading from backend syste using connector... If you want to hide some uwl tasks... i think you have to do that in the backend system...