Project

General

Profile

Actions

Task #351

closed

WF - send notifications

Added by Ondřej Kopr over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Workflow
Target version:
Start date:
04/03/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Create example - use sendNotification in WF,
create new templates.


Related issues

Related to IdStory Identity Manager - Task #402: Component for select scriptClosedOndřej Kopr05/09/2017

Actions
Actions #1

Updated by Ondřej Kopr over 7 years ago

  • % Done changed from 0 to 80
Create three new templates:
  • disapproveIdentityRole,
  • returnRequestIdentityRole,
  • changeIdentityRole.

Update WF changeIdentityRoles, create script for sending notification via templates.

In templates agenda was replaced editor with simple text area - create new task with fix bug #359

Actions #2

Updated by Ondřej Kopr over 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Vít Švanda
  • % Done changed from 80 to 90

I was tested this task in #342, Vitek please try to send notification and check text in mail.
Please i'm not able to add id for task to url, still is null.

Actions #3

Updated by Vít Švanda over 7 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Vít Švanda to Ondřej Kopr

Looks and works awesome. Please completed:

  • url to user profil
  • In activiti groovy script you do not have to use "execution.getVariable("applicantUsername")", "applicantUsername" will be enough.
Actions #4

Updated by Vít Švanda over 7 years ago

  • Priority changed from Normal to Immediate
Actions #5

Updated by Ondřej Kopr over 7 years ago

  • Priority changed from Immediate to Low
Actions #6

Updated by Ondřej Kopr over 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Vít Švanda
  • Priority changed from Low to Normal

Feedback upgrades from ZB:

Create new listener: TaskSendNotificationEventListener, this listener is for events: TASK_ASSIGNED, TASK_COMPLETED, TASK_CREATED.
Listener send notification to topics: WF_TASK_CREATED and WF_TASK_ASSIGNED for topics is now only one template (in future we may implement another template).
Send message from WF may be disabled by:
  1. Application property - max priority,
  2. task property (sendNotification) - implement new form type (ConfigurationFormType, onlz for BE), type configuration is defined like String.

To tasks in WF changeIdentityRoles was added new property for skip send message (sendNotification).

Add information about newly created logic with notification into WF section.
https://proj.bcvsolutions.eu/ngidm/doku.php?id=navrh:workflow#odesilani_notifikaci
https://proj.bcvsolutions.eu/ngidm/doku.php?id=en:navrh:konfigurace_aplikace#notification_from_workflow

Please Vitek could you try to change roles with enabled notification and check newly created listener.

Actions #7

Updated by Ondřej Kopr over 7 years ago

I was added some integration test for WF notification + create new simple test WF.

Actions #8

Updated by Ondřej Kopr over 7 years ago

  • Related to Task #402: Component for select script added
Actions #9

Updated by Vít Švanda over 7 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Ondřej Kopr
  • % Done changed from 90 to 100
  • Works and looks great.
  • I improved AbstractComponentFormType for method "isExportableToRest". And forbade export in ConfigurationFormType.
Actions #10

Updated by Ondřej Kopr over 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF