7.1.X, 7.2.X, Master
Unable to set recipient notification by user identifier other than user-id in Workflow when Kaleo Designer is deployed.
Steps to Reproduce
- Sign in
- Open Control Panel > Workflow > Single Approver > Edit
- View source
- Locate the "Creator Modification Notification"
- Change the recipients to the following:
<recipients receptionType="to"> <user> <screen-name>test</screen-name> </user> </recipients>
6. Click Update
7. Go back to the source and try to locate the Creator Modification Notification in the source code
It should keep screen-name tag in the xml source code.
Since user-id, screen-name or email-address are all valid forms of contact according to the http://www.liferay.com/dtd/liferay-workflow-definition_7_1_0.xsd(workflow definition XSD), I would expect any of these three to work. Also, the UI's user search seems to show that you can use any of the three, but in the source code it only sets the user-id.
screen-name will be stripped, and we'll see that the code has been stripped to remove the user element in favor of assignees:
<recipients receptionType="to"> <assignees/> </recipients>
In reality, only user-id works for this field.
Master Commit: f1005d6bc735d8e6a1086f9f8b8379c3601d8545
LPS-119896 Unable to add/update workflow definitions with a Task Assignment of 'User'