Email Notification

Here is an example of a workflow model that sends an email when the workflow transitions into the node1 participant state. s

{
    "id": "email-notification",
    "title": "Email Notification",
    "nodes": {
        "start": {
            "type": "start",
            "transitions": {
                "start": "node1"
            }
        },
        "node1": {
            "type": "participant",
            "title": "Step One",
            "swimlane": "main",
            "transitions": {
                "approve": "end"
            },
            "email": "email1"
        },
        "end": {
            "type": "end"
        }
    },
    "swimlanes": {
        "main": {
            "principals": []
        }
    },
    "emails": {
        "email1": {
            "body": "Hello!  You have received something to work on!",
            "subject": "Test basic-email3"
        }
    }
}