3.1.7.2 SEQUENCES_COMPLETE Event
If the SEQUENCES_COMPLETE event is signaled, the RMS role MUST perform the following actions:
Set the value of the State field to CLOSING_SEQUENCES_COMPLETE.
Create a new CloseSequence message.
If the value of the WSRM Version field is WSRM10:
Set the value of the Identifier element in the Sequence header block in the Header element of the CloseSequence message to the value of the Outbound Sequence Identifier field.
Set the value of the MessageNumber element in the Sequence header block in the Header element of the CloseSequence message to the value of the Next Sequence Number field.
Otherwise:
Set the value of the Identifier element in the CloseSequence element in the body of the CloseSequence message to the value of the Outbound Sequence Identifier field.
Set the value of the LastMsgNumber element in the CloseSequence element in the body of the CloseSequence message to the value of the Next Sequence Number field.
Signal the PREPARE_ACKNOWLEDGEMENT event passing the CloseSequence message.
Send the CloseSequence message on the underlying protocol.