Defect #2018
closedWhen a new approval task is created by the WF, notification to the approving user is not sent
100%
Description
As the title says, the situation is that with the properies
idm.sec.core.wf.approval.manager.enabled = true
idm.sec.core.wf.notification.send = true
no notification is sent to the user for whom the task was created. The task exists and can be approved by the user but no notification is sent.
Files
Updated by Vít Švanda almost 5 years ago
- File wf-with-notify.png wf-with-notify.png added
I tried this use-case (on 10.1.0):
- I set config property idm.sec.core.wf.notification.send=true.
- Then I created request for role with guarrantee.
- WF task was created and correct notification was created to.
Hello, For your account kopr on CzechIdM system has been assigned a new approval task. You can go to the task detail here: http://localhost:3000/#/task/cf9acca3-3eb6-11ea-9724-18568080446e Regards BCV Solutions Ltd.
Updated by Tomáš Doischer almost 5 years ago
To clarify further, the approving user is the manager of the user, not the guarantee of the role (it works fine for them). So the use-case is different.
Updated by Vít Švanda almost 5 years ago
Ok, that is clear now. Sending notification on create new user-task is disabled in this activity (sendNotification).
I do not remember why this notification was turned off, but it was a requirement. But you can change this workflow :-).
Updated by Tomáš Doischer almost 5 years ago
Thank you, I will create a projspec version of the workflow then. :)
Updated by Alena Peterová almost 5 years ago
I found the origin of this code in #351 (commit 8c171432d). There is also some explanation of the principle how to send notifications, but no strict requirement to not send the notification for this particular task.
Since the workflow notifications are turned off by default thanks to the property idm.sec.core.wf.notification.send=false (which is also questionable in my opinion), there is really no other valid reason to turn it off again in the workflow.
We can compare it with the worfklow approveRoleByAuthorizer, which doesn't have "sendNotification" property defined and so it honors the global configuration.
Updated by Vít Švanda almost 5 years ago
- Priority changed from Normal to Low
- Target version set to Rhyolite (9.7.15)
I agree. Direct turning off sending notification only give me good sense if extra notification activity is implemented. I will remove this property.
Updated by Vít Švanda almost 5 years ago
- Target version changed from Rhyolite (9.7.15) to 10.2.0
Updated by Vít Švanda almost 5 years ago
- Assignee changed from Vít Švanda to Ondrej Husník
Updated by Ondrej Husník almost 5 years ago
- Status changed from New to Needs feedback
- Assignee changed from Ondrej Husník to Vít Švanda
- % Done changed from 0 to 90
According to the previous discussion I fixed this issue by changing default value, of the local notification triggers in WF blocks representing administrator approval action, from false to true. Notifications are now at particular blocks enabled by default.
https://github.com/bcvsolutions/CzechIdMng/pull/88/commits/7741df4e44d8c436e0b68d90e68f81af16e7956b
Updated by Radek Tomiška almost 5 years ago
- Assignee changed from Vít Švanda to Radek Tomiška
Updated by Radek Tomiška almost 5 years ago
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Ondrej Husník
- % Done changed from 90 to 100
I did test and code review, is works and code is nice, thx!