I was facing issue in understanding the flow of SystemMessage in moqui. I thought it would be good to ask if my understanding about it is correct or not. So -
- There are some important entities related to it, like SystemMessage, SystemMessageType, SystemMessageRemote, ServiceJob, SystemMessageError.
- Whenever we want to get or fetch the data we have to first receive the data, receive#IncomingSystemMessage service.
- And if we want to send the data we have to first queue the data for that we use queue#SystemMessage service.
- These services will create a SystemMessage record in the entity. Which can be process further.
- The text of info is stored in the messageText field of the SystemMessage entity.
- While receiving the data by receive#IncomingSystemMessage service the consume#ReceivedSystemMessage service is called to consume the data for create SystemMessage record.
- And while sending data queue#SystemMessage will check if sendNow is true or false, if it is true then it will call a service named send#ProducedSystemMessage and sends data.
- The value of sendNow is by default true. We can choose to send the generated system message right now or maybe later.
Want to know, is there something I am missing on, or I have misunderstood ?