'E-commerce background business process Java and Spring

I need create a ecommerce api using Java and Spring. But how create a background process, for example:

After place order, i need send confirmation e-mail, wait order payment, wait separation, confirm send products for transporter, send confirmation e-mail of products sended.

Any in background proccess, without external tools with Camunda or Activiti or any graphic BPM tool.

Function as a process queue. I want to define the process step by step, depending on the result of one of the steps leading to another.

Does anyone know how I can do it?

Event Listener? how?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source