👔 Business Narrative
Business Logic Rules for 'Overview Rules':- Context - a message processing operation is initiated:
For 1:Initialize Program Control:
When the system begins message processing, then the current program name is saved and the module name becomes the active program identifier.
- Context - a new ih notification needs to be processed:
For 2:Prepare IH Notification Data:
When the notification data structure is being prepared, then the input structure is initialized and security byte is set to high values for maximum security.
- Context - ih notification data is prepared with security controls:
For 3:Format CCN Status Message:
When the ccn status message is being formatted, then the 91-byte input data is moved to positions 2-91 of the message structure and the formatted input is copied to the message area.
- Context - a ccn status message is formatted and ready for processing:
For 3:Format CCN Status Message:
When the message is prepared for transmission, then the accept status is set to spaces to indicate a cleared/ready state.
- Context - a formatted ccn status message with cleared accept status:
For 4:Send Initial IMS Message:
When the message is sent for initial processing, then the cims service is invoked with change operation parameters to process the message.
- Context - a message has been processed through initial ims processing:
For 5:Write Message Log:
When the message logging is performed, then the writmsgl service is invoked with message code, content, length, and module name for complete audit logging.
- Context - a message has been processed and logged successfully:
For 6:Purge IMS Message:
When the cleanup operation is performed, then the cims service is invoked with purge operation to remove the processed message from the system.
👨💻 Technical ACs (Gherkin)
Context: A message processing operation is initiated
GIVEN
A message processing operation is initiated
Applied to: 1:Initialize Program Control
WHEN
The system begins message processing
THEN
The current program name is saved and the module name becomes the active program identifier
Context: A new IH notification needs to be processed
GIVEN
A new IH notification needs to be processed
Applied to: 2:Prepare IH Notification Data
WHEN
The notification data structure is being prepared
THEN
The input structure is initialized and security byte is set to high values for maximum security
Context: IH notification data is prepared with security controls
GIVEN
IH notification data is prepared with security controls
Applied to: 3:Format CCN Status Message
WHEN
The CCN status message is being formatted
THEN
The 91-byte input data is moved to positions 2-91 of the message structure and the formatted input is copied to the message area
Context: A CCN status message is formatted and ready for processing
GIVEN
A CCN status message is formatted and ready for processing
Applied to: 3:Format CCN Status Message
WHEN
The message is prepared for transmission
THEN
The accept status is set to spaces to indicate a cleared/ready state
Context: A formatted CCN status message with cleared accept status
GIVEN
A formatted CCN status message with cleared accept status
Applied to: 4:Send Initial IMS Message
WHEN
The message is sent for initial processing
THEN
The CIMS service is invoked with change operation parameters to process the message
Context: A message has been processed through initial IMS processing
GIVEN
A message has been processed through initial IMS processing
Applied to: 5:Write Message Log
WHEN
The message logging is performed
THEN
The WRITMSGL service is invoked with message code, content, length, and module name for complete audit logging
Context: A message has been processed and logged successfully
GIVEN
A message has been processed and logged successfully
Applied to: 6:Purge IMS Message
WHEN
The cleanup operation is performed
THEN
The CIMS service is invoked with purge operation to remove the processed message from the system