@startuml
'diagram parameters'
'skinparam dpi 300
skinparam LegendBackgroundColor #white

'diagram title'
title PB-202: UC24.1 Process MQ message

'a brief description of the diagram'
legend top
-- \t**Abstract:**\t --
Process to analyse daily MQ messages and populate TEMPORARY_TABLE.
DTS - Debt Service
NS - Notification Service

**Precondition**:TEMPORARY_TABLE must be empty

**Poscondition**:TEMPORARY_TABLE must be populated
end legend

partition Bradesco #lightblue {
  start
  :Bradesco inserts an individual Next customer (debtor) record in an MQ;

}
partition Next #lightgrey {

    partition DTS {

        while (For each message on mq)
            :Add message on TEMPORARY_TABLE;
        endwhile(All records in MQ have processed)
      :All records in MQ have processed;
    stop
    }
}

@enduml
