Code Extension Type: GENERAL_NOTICES_CODE_EXTENSION (on page 1)
Purpose: The HostEventExporter records a message in the Integration Service Message view form. You can use this form to modify and resend the message to the queue. N4 creates a SNX message that contains key information generated by a service event using the HostEventExporter code extension, and sends it to the outbound JMS queue.
Sample outbound message:
<host-outbound-message>
<event id="UNIT_DISCH" time-event-applied="2014-01-10T12:11:19" user-id="user:user1" is-billable="Y" entity="UNIT" entity-id="CNTU3242456">
<field-changes>
<field-change id="posName" new-value="Y-YARD1-EA" prev-value="V-AAATP" />
</field-changes>
</event>
<move move-kind="DSCH" timestamp="2014-01-10T12:11:19">
<from-position loc-type="VESSEL" location="AAATP" />
<to-position loc-type="YARD" location="YARD1" slot="EA" />
<move-details time-discharge="2014-01-10T12:11:19" time-put="2014-01-10T12:11:19" restow-reason="VESSELOP" />
</move>
</host-outbound-message>
Some of the attributes included in a message are:
Entity Class (eg Unit, Vessel Visit)
Entity identifier (eg ABCU1234567, APM1234 etc)
Event Info
Event Id (eg UNIT_RECEIVE, PHASE_VV, BOOKING_PROPERTY_UPDATE)
Note
Sequence Number
Recorder
Applied time
Event Field Changes (0 to many)
Field Id
New Value
Previous Value
Related Entity Id
Related Entity Class
Billable
Quantity
Quantity Unit
Move Info (applies to units only)
From position
To position
Move details (complex type, see SNX type for details)
Move kind
Time stamp
Is correction only (y/n)
HostEventExporter is a sample event exporter provided by Navis. You can also implement your own code extension based on your requirement.