{
        "priority": 7,
        "max_retries": 3,
        "steps": [
            {
                "step": 1,
                "action": "query",
                "description": "Get submission details",
                "query": "SELECT * FROM taxcore_submissions WHERE submission_id = ${event.submission_id}"
            },
            {
                "step": 2,
                "action": "update",
                "description": "Update source document with TaxCore invoice number",
                "table": "${step1.reference_table}",
                "where": "${step1.reference_table === 'invoices' ? 'invoice_id' : 'receipt_id'} = ${step1.reference_id}",
                "set": {
                    "taxcore_invoice_number": "${step1.taxcore_invoice_number}",
                    "taxcore_url": "${step1.taxcore_url}"
                }
            },
            {
                "step": 3,
                "action": "notify",
                "channel": "taxcore:success",
                "message": "TaxCore submission successful: ${step1.taxcore_invoice_number}"
            }
        ]
    }