EMS FastStart Manual

Brief Review of Event Design
EMS FastStart Manual133701
2-12
Step 9: Build Template File
can be used without the other. An event is classified informative by default unless
otherwise specified.
Section 6, Building Your Application for Event Generation
, has more information on
event types and lists sample code for each. Each programmer decides which type is
appropriate for each message needed for an application.
Informative
An informative event message informs you about any system or program status message
you want, for example, the program started normally. This is the default event message
type for FastStart.
Action-Attention
An action-attention event message means operator intervention is needed, for example, a
message to change a tape. This is the first half of a pair with an Action-Completion type
message being the second half.
Action-Completion
An action-completion event message informs you that the necessary action of an action-
attention event message was completed and the job is continuing.
Critical
A critical event message informs you that a critical event has occurred, for example, an
error has occurred which requires immediate attention.
You determine the event type by deciding the level of importance of each event, for
example:
Step 9: Build Template File
Based on the previous steps, you can now build your event templates. During this step,
you will use the syntax defined in the DSM Template Services Manual to create a
template source file for you application. In this file, you need to describe your
subsystem, each event with their fixed text and the variable data fields (tokens) which
will contain the variables data for each event.
Event
Number Event Literal Topic Event Type
Event 1 ATM-EVT-UP ATM is up Informative
Event 2 ATM-EVT-ACCT-INSUF-FUNDS Insufficient funds in
account
Informative
Event 100 ATM-EVT-LOW-ON-CASH ATM is low on cash Action
Event 200 ATM-EVT-DOWN ATM is down Critical
Event 201 ATM-EVT-SECURITY-BREACH ATM security breach Critical
Event 202 ATM-EVT-HW-FAILURE ATM hardware failure Critical