on 03-17-2015 6:19 AM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Hi Shiva,
Just make it <Property name="UserDecisionNote" value="mandatory"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.