Sending of a shifting summary

Rationale and Context

A final user want to send its shifting summary to its manager of its human resource center.
The final user will invoke the service 'ShiftingSummarySending' with its shifting summary as attachment. According to the final user, the service 'ShiftingSummarySending' will determine the manager of the human resource center of the final user asking the user base. Next, an e-mail is sent to the manager of the human resource center. When the e-mail delivery will be confirmed, a sucess notification will be sent to the final user. Otherwise, if the e-mail delivery is not confirmed, a failure notification will be sent to the final user.

This use case is described for Petals Enterprise Edition 5.0.0
Contributors
No contributors found for: authors on selected page(s)

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,

Labels

talend talend Delete
filetransfer filetransfer Delete
bc bc Delete
se se Delete
petals petals Delete
uc-file-transfer uc-file-transfer Delete
uc-talend uc-talend Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.