The platform implements the ability to inform about the transition to a new state by sending an e-mail. If a notification should be received by e-mail about committing some alterations in logic executed by the object, in this case, the command "Send e-mail" is added in such state that is of interest to the user. It can be added both to entering into this state and on exit from it, depending on the business logic specified in the concept.
If clicking on the line with this command, the sidebar will appear at the right in which all necessary parameters may be entered.
Initially, the message sender e-mail is indicated. Since the e-mail will be sent from the platform, the current field is not necessary to be filled, and its contents will be formed automatically.
Following that, the sender e-mail is specified. The message can be sent both to one mailbox and to several. Then in the second case, all e-mail addresses are comma-separated.
Next, if desired, the message subject may be indicated, describing the occurred event briefly. For example, the state name, in which the object has occurred, may be specified in the message subject.
Text of the message itself can be configured in different ways. It can be a usual text message, in which, for instance, the current values of specific parameters can be manually entered and listed with a comma.
Besides that, the user can form a message in the HTML format. It is formed in the corresponding last box. Firstly, one of four encoding - JSON, HEX, Base64, or Text not attached to any of them - is selected. After that, the message body is formed in this field.
As a result, by starting a final state machine, when the object will be on entering to this state or, vice versa, on exit from it, the system will form and send the e-mail. There will be contained all the necessary information about the current object state.