Events

For BOD BIDs, events must be modeled in the LN Studio user interface. The developer specifies which messages can be sent or received for a BID. No public methods are modeled.

In the BII model, events are not modeled explicitly. A fixed, predefined relation exists between the events in the BID and the methods in the BII. No ‘event implementation’ entity is introduced in the BII. Consequently, the mapping of events to method implementations is implicit. The LN Studio user interface will report a problem if the method implementations in the BII do not match the modeled events from the BID.

Both sending and receiving events is done through method implementations.

The required implementations are as follows:

Event in BID Implementation for ‘Can Be Published’ Implementation for ‘Can Be Received’
Process PublishEvent and ShowAndPublishProcessBOD OnProcess
Acknowledge n/a (handled through OnProcess) OnAcknowledge
Sync PublishEvent and ShowAndPublishSyncBOD OnSync
Load PublishEvent and ShowAndPublishLoadBOD OnLoad
Post PublishEvent and ShowAndPublishPostBOD OnPost
Update PublishEvent and ShowAndPublishUpdateBOD OnUpdate
Get unsupported unsupported
Show unsupported unsupported
Confirm n/a (Confirm BODs are sent through the On methods) n/a (LN cannot receive Confirm BODs)