Generic event

Marco of ruleCore started an interesting discussion of what a generic event should look like. I originally wanted to post this in the comment, but WordPress seems to be stripping XML tags, so here it is:

Seems to me that an event “object” should have a separate header and a body. The header would have common event-info and the body specifics for the event type/entity. Something like:

<?xml version="1.0" encoding="UTF-8"?>
<event>
    <head>
        <id>12784536</id>
        <type_id>51</type_id>
        <time_stamp>2008-12-11T13:25:57.014Z</time_stamp>
        <entity_id>862</entity_id>
    </head>
    <body>
        <!-- Event type & entity specific data here -->
    </body>
</event>

Leave a comment