Solution
Overview
We will use the Petals SE Activiti to implement the process defined below. A user task will be used in the process definition to get inform of the e-mail delivery.
To be inform of the e-mail delivery, we can use the SMTP option 'Delivery Status Notification (DSN)' (see RFC 1891). When the e-mail of delivery confirmation is received, the user task of the associated process instance will be terminated successfully, and the process execution will continue.
The user base will be simulated by a SOAP-UI mock service through a resource Restfull or a SOAP web-service. We have two different implementations of the same service for fun
Applicative resources
All applicative resources are simulated through SOAP-UI mocks defined as following in the SOAP-UI project of this sample.
User base simulation
To send the email containing the shifting summary to the human resource manager, we must look him in the user base.
So the user base system must provide following services:
- a service retrieving the email address of the human resource manager of a given user identified by its user identifier. This service is simulated:
- in a SOAP way, using the operation 'humanResourceManager' of the user base web-service 'userBaseService': the returned email of the human resource manager is defined as the global property 'humanResourceManagerEmail'of the SOAP-UI project,