Project

General

Profile

Actions

Task #754

closed

Configurable recipient in changeIdentityRoles

Added by Ondřej Kopr about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Patrik Stloukal
Category:
Workflow
Target version:
Start date:
10/11/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Add two new configuration properties (bool flag) - send notification to 'applicant' and send notification 'requested for'.
Update wf changeIdentityRoles and send notification according to bool flag (beware check also recipient if both flag are true and recipient is same send only one notification)
Add three new notification template for 'applicant' (like IdmCoreReturnRequestIdentityRole, IdmCoreChangeIdentityRole, IdmCoreDisapproveIdentityRole).
Update design of existing templates IdmCoreReturnRequestIdentityRole, IdmCoreChangeIdentityRole, IdmCoreDisapproveIdentityRole like new template style in VsRequestCreated.


Files

last_line.png (1.64 KB) last_line.png Ondřej Kopr, 11/01/2017 07:07 AM
Actions #2

Updated by Ondřej Kopr about 7 years ago

Also check current workflow changeIdentityRoles for some good place for new notification (who to notify, what is content of notification).

Actions #3

Updated by Patrik Stloukal about 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

i worked on: two new configuration properties
Update design of IdmCoreChangeIdentityRole,

Actions #4

Updated by Patrik Stloukal about 7 years ago

  • % Done changed from 20 to 80
Actions #5

Updated by Patrik Stloukal about 7 years ago

i did some changes with notification templates, modified design of messages. start with tests.

Actions #6

Updated by Patrik Stloukal about 7 years ago

  • % Done changed from 80 to 90

tests complete, working on documentation

Actions #8

Updated by Radek Tomiška about 7 years ago

  • Assignee changed from Radek Tomiška to Ondřej Kopr
Actions #9

Updated by Ondřej Kopr about 7 years ago

  • Target version set to Forsterite (7.6.0)
Actions #10

Updated by Ondřej Kopr about 7 years ago

I did review, i found these issues:

  • in template IdmCoreChangeIdentityRole, macro printRole has as parameter color, but in macros isn't this attribute used, please remove this attribute, is useless,
  • same use case as above in template IdmCoreChangeIdentityRoleRequester,
  • IdmCoreChangeIdentityRoleRequester and another xml files missing last lines please add this lines, this is possible problem while parsing xml files,
  • if is possible try little format all templates that you edited (different tabs and etc.),
  • test are awesome, but set creator is useless, please remove this: "organization.setCreator("ja");" and change czech language in strings, we are worldwide :),
  • this isn't really necessary but is it will be nice if you add java doc for private methods in test.

I made tests for helpdesk, usermanager, manager, security and also test split to subprocess. Test with same or different applicant and requester i also made, your algorithm works awesome! Thanks for that. Backward compatibility also works.

i already merged develop into your branch and resolve conflicts in CoreModuleDescriptor

After you will resolve feedback give me this task back.

Actions #11

Updated by Ondřej Kopr about 7 years ago

  • Assignee changed from Ondřej Kopr to Patrik Stloukal
Actions #12

Updated by Patrik Stloukal about 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Patrik Stloukal to Ondřej Kopr
  • % Done changed from 80 to 90

i removed issues from feedback and modified tables in IdmchangeIdentityRoleRequester and IdmchangeIdentityRole (padding and color-yellow was too much bright)

Actions #14

Updated by Ondřej Kopr about 7 years ago

  • Assignee changed from Ondřej Kopr to Radek Tomiška

I did feedback, every things works as ticket describes. Only thinks to discussion is design of notification template. Thank you Patrik for this new feature.

Radek could you make a review of review? Thank you :).

Actions #15

Updated by Radek Tomiška about 7 years ago

  • Assignee changed from Radek Tomiška to Vít Švanda
Actions #16

Updated by Vít Švanda about 7 years ago

  • Assignee changed from Vít Švanda to Ondřej Kopr
I found some issues in the workflow scripts:
  • Use implementerId instead requestor.
  • Use equlas for compare IDs.
  • After return request have to be task assigned on the implementer not applicant.
Actions #17

Updated by Ondřej Kopr about 7 years ago

  • Status changed from Needs feedback to In Progress
  • Target version deleted (Forsterite (7.6.0))
  • % Done changed from 90 to 70

This feature will not be in 7.6.0. It must be consults this task with Marcel.

Actions #18

Updated by Patrik Stloukal almost 7 years ago

  • Assignee changed from Ondřej Kopr to Patrik Stloukal
Actions #19

Updated by Patrik Stloukal almost 7 years ago

resolving issues, changed recipient
todo: modify test and notification templates

Actions #20

Updated by Patrik Stloukal almost 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Patrik Stloukal to Ondřej Kopr
  • % Done changed from 70 to 90

modified test and notification templates, testing

commit: https://github.com/bcvsolutions/CzechIdMng/commit/71e65dc9dd4e45a00c993a947cfa42d00fcafc18

i resolved issues from feedback, please send review

Actions #21

Updated by Ondřej Kopr almost 7 years ago

  • Assignee changed from Ondřej Kopr to Vít Švanda

Why you create new branch? Now is all your changes in one commit and I don't see only last changes :(

I made feedback and check classic use cases:
  • approve, disapprove and return task (applicant is different person than person for what is role request),
  • approve, disapprove and return task (applicant is same person)
  • and both above use case try with different application property settings.

new configurations can be found there:
https://wiki.czechidm.com/7.6/dev/configuration/backend?s[]=configuration#notification_from_workflow
https://wiki.czechidm.com/tutorial/adm/role_change_notification_configuration

Your new changes works, please Vitek could you made feedback for Patrik? Thank you.

Actions #22

Updated by Vít Švanda almost 7 years ago

  • Target version set to Garnet (7.8.0)
  • % Done changed from 90 to 100

I did review and test. Works fine. I found problem with load implementer user in the WF (loading by user created the event). I fixed it (implementerId variable is used now).

Actions #23

Updated by Vít Švanda almost 7 years ago

  • Status changed from Needs feedback to Closed
  • Assignee changed from Vít Švanda to Patrik Stloukal
Actions

Also available in: Atom PDF