View Source

{section}
{column}

h1. 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.

{tip}This use case is described for Petals Enterprise Edition 5.0.0{tip}

{column}
{hide-if:display=pdf}
{column:width=350px}
{panel:title=Table of contents}{toc}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
{column}
{hide-if}
{section}

h1. Solution

h2. Overall solution

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|ftp://ftp.informatik.uni-kiel.de/pub/internet/rfc/rfc-1800-1899/rfc1891.gz]). 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.