cancel
Showing results for 
Search instead for 
Did you mean: 

UWL User decision note mandatory

Former Member
0 Kudos


Hi Experts,

In my UWL config, i want approval and rejection comments mandatory....
Currently only Rejection is working a mandatory.


How to modify the below XML to make approval also mandatory ?
Can i change value="true" to value="mandatory" ?


<Actions>
<Action name="approve" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="1"/>
<Property name="UserDecisionTitle" value="Enter Approval or Rejection Comment please"/>
<Property name="UserDecisionNote" value="true"/>
</Properties>
<Descriptions default="Approve"/>
</Action>
<Action name="reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="2"/>
<Property name="UserDecisionTitle" value="Enter Approval or Rejection Comment please"/>
<Property name="UserDecisionNote" value="mandatory"/>
</Properties>
<Descriptions default="Reject"/>
</Action>
</Actions>

Please help...

Thanks & Regards,
Shiva

Accepted Solutions (1)

Accepted Solutions (1)

SandySingh
Active Contributor
0 Kudos

Hello

Yes you are correct.

Use the following XML

<Actions>

<Action name="approve" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="decisionKey" value="1"/>

<Property name="UserDecisionTitle" value="Enter Approval or Rejection Comment please"/>

<Property name="UserDecisionNote" value="mandatory"/>

</Properties>

<Descriptions default="Approve"/>

</Action>

<Action name="reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="decisionKey" value="2"/>

<Property name="UserDecisionTitle" value="Enter Approval or Rejection Comment please"/>

<Property name="UserDecisionNote" value="mandatory"/>

</Properties>

<Descriptions default="Reject"/>

</Action>

</Actions>

Former Member
0 Kudos

Hi Lohith & Sandy,

  Thanks for the quick response.

Please let me know what is the difference between

<Property name="UserDecisionNote" value="true"/>
                       

<Property name="UserDecisionNote" value="mandatory"/>

If i change true then what will be the impact ?

Regards,
Shiva

Private_Member_46505
Active Participant
0 Kudos

True will just allow you to manually attach a note by clicking on add note in work item,while mandatory will check for any rejection/approval comments note is attatched or not...Since you want comments must on both approve and reject keep it mandatory.

If you want to test then put a external break point in XML and execute workitem,before clicking approve or reject click on add note the value will be true and if u make mandatory it will ask for note attachment for comments.

Answers (1)

Answers (1)

Private_Member_46505
Active Participant
0 Kudos

Hi Shiva,

Just make it <Property name="UserDecisionNote" value="mandatory"/>