{
    "$schema": "https://schema.dawiso.com/automation-schema.json",
    "automations": [
        {
            "key": "cust_setAttribute",
            "name": "Set Documentation Set Attribute",
            "triggers": [
                {
                    "key": "objectAdded",
                    "type": "objectAdded",
                    "objectTypeKeys": [
                        "core_documentation_document"
                    ]
                }
            ],
            "stream": [
                {
                    "key": "logicalFormula",
                    "type": "logicalFormula",
                    "operator": "and",
                    "clauses": [
                        {
                            "type": "spaceFilter",
                            "operand": "in",
                            "values": [
                                "Operational Metrics"
                            ]
                        },
                        {
                            "type": "applicationFilter",
                            "operand": "in",
                            "applicationKeys": [
                                "core_documentation_app"
                            ]
                        }
                    ]
                }
            ],
            "actions": [
                {
                    "key": "setAttribute",
                    "type": "setAttribute",
                    "attributeTypeKey": "core_description",
                    "expression": "<b>{{currentObject}.parent().attribute('core_description').toUpper()}: Document number #{{constantIdPool.example_pool}.leading(3,'0')}<b>.<br>Awaiting documentation."
                }
            ]
        }
    ]
}