on 2009 Mar 24 6:56 AM
Hi Friends,
We have a requirement in UWL for a custom task TS90000104; the user should get the user decision note once he clicks the work item in UWL, where in he can enter the rejection reasons while rejecting a leave request. For this we need to modify the XML file associated with the task, we need the set the value of the property name UserDecisionNote to true.I have the following doubts in that:
Will there be an XML file associated with every custom task?, If so where we can find them, If not then will there be a common XML file which we need to copy and change the task id and the other property names and then upload it? Please clarify.
Request clarification before answering.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply sapient. I had a bit of a difficult time getting the XML file set up correctly because between the SAP help, the UWL with SAP Netweaver Portal book and various online examples, I was getting conflicting information as to how to do it. First of all, when the UWL initially loads, you apparently see the template defined in the XML file. After the UWL refreshes, it pulls the information from the actual workitem/definition and it overrides some of the settings in the XML. I have a decision step with 3 outcomes. If I don't define all 3 steps in the XML, it doesn't work. I want my replace and reject steps to have the note as mandatory while approve doesn't require it. My first few attempts resulted in all 3 outcomes requiring a note to be attached. It seems the order you use to define the actions matters and the optional outcome must be defined first. Here's the XML that worked for me..hopefully it is helpful to someone else:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
<UWLConfiguration version="1.0">
<ItemTypes>
<!-- Check Expense Report (Trip) -->
<ItemType name="uwl.task.webflow.decision.TS91000143.ECDCLNT020" connector="WebFlowConnector"
defaultView="com.sap.pct.erp.mss.tra.view.TripCheckView"
defaultAction="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm">
<ItemTypeCriteria externalType="TS91000143" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId"
objectType="WebflowContainer" cacheValidity="final">
<Attribute name="TripNumber" displayName="Trip Number"/>
<Attribute name="EmployeeNumber" displayName="Employee Number"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action reference="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm"/>
<Action name="launchSAPDetails" handler="SAPMiniAppLauncher">
<Properties>
<Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/><!-- Hide action->
</Properties>
</Action>
<!--Action name="viewPreviewDetail" handler="SAPMiniAppLauncher">
<Properties>
<Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
</Properties>
</Action-->
<Action name="approved" groupAction="yes" handler="UserDecisionHandler"
returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="3"/>
<Property name="UserDecisionTitle" value="Approve"/> </Properties>
<Descriptions default="Approved"/> </Action>
<Action name="rejected" groupAction="yes" handler="UserDecisionHandler"
returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="UserDecisionNote" value="mandatory"/>
<Property name="decisionKey" value="2"/> </Properties>
<Descriptions default="Rejected"/> </Action>
<Action name="replaced" groupAction="yes" handler="UserDecisionHandler"
returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="UserDecisionNote" value="mandatory"/>
<Property name="decisionKey" value="1"/> </Properties>
<Descriptions default="Replaced"/> </Action>
</Actions>
</ItemType>
</ItemTypes>
</UWLConfiguration>
I used the decisionKey method to designate each outcome. FM sap_wapi_decision_read works nicely to help you figure out the key number for each outcome.
User | Count |
---|---|
76 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.