{
    "from": "/ProcessSalesOrder",
    "to": "so",
    "array": [
        {
            "from": "ApplicationArea/CreationDateTime",
            "to": "date"
        },
        {
            "from": "DataArea/SalesOrder/SalesOrderHeader/Note",
            "to": "deliveryNoteComment",
            "attribute": "type",
            "attribute_value": "deliveryNoteComment"
        },
        {
            "from": "DataArea/SalesOrder/SalesOrderHeader/Note",
            "to": "passThrough",
            "_attr_example": "DataArea/InventoryBalance/CatchWeightQuantity[@unitCode=\"GRM\", @asdasd=123]",
            "attribute": "type",
            "attribute_value": "passThrough",
            "data_from_attribute": "status"
        },
        {
            "from": "DataArea/SalesOrder/SalesOrderHeader/DocumentID/ID",
            "to": "id"
        },
        {
            "from": "DataArea/Process/ActionCriteria/ActionExpression",
            "to": "documentType",
            "attribute": "actionCode",
            "attribute_value": "documentType"
        },
        {
            "from": "DataArea/SalesOrder/SalesOrderLine",
            "to": "sor",
            "array": [
                {
                    "from": "LineNumber",
                    "to": "line"
                },
                {
                    "from": "DocumentReference",
                    "to": "your_reference",
                    "attribute": "actionCode",
                    "attribute_value": "documentType",
                    "data_from_attribute": "attrNameHere"
                },
                {
                    "from": "Note:type=pickingNoteComment",
                    "to": "pickingNoteComment"
                },
                {
                    "from": "SalesOrderSubLine",
                    "to": "subline",
                    "array": [
                        {
                            "from": "LineNumber",
                            "to": "line_number"
                        },
                        {
                            "from": "ParentLineNumber",
                            "to": "parent_line_number"
                        },
                        {
                            "from": "Item",
                            "to": "item",
                            "array": [
                                {
                                    "from": "ItemID/ID",
                                    "to": "product_id"
                                },
                                {
                                    "from": "Lot/SerialNumber",
                                    "to": "serial",
                                    "array": []
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}