RegisterStatusMethod

This method allows for a user-provided status method to be registered for a particular map object.

This status method will be invoked at critical points during the execution of the map.

If the status method returns MPI_STATE_ABORTED, execution of the map will stop immediately. After aborting a map, it is possible to start it again from the beginning using the Run method.

iNotifyWhen is a bitmask that governs when the status method will be called. It can be any combination of the values listed.

Value Description
MPI_EVENT_START_MAP Notify whenever a map is started.
MPI_EVENT_MAP_COMPLETE Notify whenever a map completes.
MPI_EVENT_START_BURST Notify whenever a burst is started.
MPI_EVENT_BURST_COMPLETE Notify whenever a burst completes.
MPI_EVENT_START_INPUT Notify whenever an input starts.
MPI_EVENT_INPUT_COMPLETE Notify whenever an input completes.
MPI_EVENT_START_OUTPUT Notify whenever an output starts.
MPI_EVENT_OUTPUT_COMPLETE Notify whenever an output completes.
MPI_EVENT_CARD_EVENTS Notify whenever any card is started or completes.
MPI_EVENT_BURST_EVENTS Notify whenever a burst starts or completes.
MPI_EVENT_MAP_EVENTS Notify whenever a map starts or completes.
MPI_EVENT_ALL_EVENTS Notify all card, map, and burst events.