Applies to version: 8.1.x and above, author: Martyna Kubiak
Functionality description
With WEBCON BPS users can now create HotMailBoxes. A HotMailBox automatically starts workflows or adds files to them whenever an e-mail message is delivered to an inbox configured in it. A HotMailBox can operate in one of the following modes:
Example – “Add to elements based on barcodes in attachments”
A workflow named “Agreement” is created where a .pdf document containing an agreement is generated. The document includes a barcode of a workflow instance in which it was created. Once a client sends an e-mail containing such an agreement, its scan along with client’s signatures is added to a workflow instance of such an agreement. Each .pdf attachment appended to an e-mail is searched for a workflow instance barcode. If it is found, the system reads the agreement document ID in the workflow and adds an attachment to it.
The “Agreement” workflow diagram is presented below
Fig. 1. The “Agreement” workflow diagram
HotMailBox configuration
To start configuration, first create a HotMailBox. To do that go to “System settings” module in WEBCON BPS Designer Studio and click the “HotMailBoxes” item in the selection tree on the left. A “New HotMailBox” button appears in the upper bar – click it to start configuring new HotMailBox.
Fig. 2. Creating new HotMailBox
The “General” tab
There are five fields to fill out in the “General” tab of a new HotMailBox:
Fig. 3. The “Test connection parameters” tool window
Fig. 4. Context-sensitive help for the “Template for created attachment name” field
In the described case, only the .pdf files containing signed agreement scan are searched for, so select the “Only PDF files” option in “Attachments to be processed”. Additionally, this section allows users to define operation executed on delivery of an e-mail containing a .pdf attachment with a code or with an incorrect code.
Fig. 5. Context-sensitive help for the “Additional attachments filter” field
There are no additional files downloaded in the discussed example.
Fig. 6. A demonstrative configuration of the “General” tab
The “Advanced settings” tab
Once you configure the “General” tab proceed to the “Advanced settings” tab. The tab is divided into two sections:
An example of configuration of “Advanced settings” tab is presented in fig. 7.
Fig. 7. A demonstrative configuration of the “Advanced settings” tab
The “Barcode settings” tab
The “Barcode settings” tab consists of three sections:
Fig. 8. A demonstrative configuration of the “Barcode settings” tab
The “Adding attachment settings” tab
The “Adding attachment settings” tab is divided into two sections:
Fig. 9. Context-sensitive help for the “Workflow field values” field
The tab configuration for the discussed example is presented in fig. 10.
Fig. 10. A demonstrative configuration of the “Adding attachment settings” tab
Saving a HotMailBox
After configuring tabs “General”, “Advanced settings”, “Barcode settings”, and “Adding attachment settings” you can save your HotMailBox by clicking the “Save” button in the upper bar.
When correctly saved, a message appears with information on actions to be taken to make the changes in the HotMailBox effective.
Service configuration
After saving the HotMailBox, enable the “E-mail/MailApproval inbox monitoring” role in a service. To do that click the “System settings” button in the right, lower corner, select the “Services configuration” node from the selection tree on the left, choose the “Services” item, and select the right service.
Fig. 11. Service selection
Once you select a service, check the “E-mail/MailApproval inbox monitoring” role, and save changes in service configuration. For the HotMailBox to work correctly, you need to reload service configuration.
After clicking the “Load configuration” button, the system asks to confirm the intent to reload configuration, as this involves stopping all active service tasks. Stopped operations are restarted when a service reloads its configuration.
Fig. 12. Service configuration
Your HotMailBox is correctly configured. When an e-mail is received in a selected folder, the system checks if it includes any .pdf attachment. Each .pdf file is then searched for barcodes with document ID. If the system finds a barcode, the file is added as an attachment to the “Agreement” workflow.