When ever we submit order, There are several action WC considers to complete the submission.
- Order Process command is triggered.
- If BusinessFlowEventListener component is enabled in ws-server-*.xml, unified business function will be called.
- Flow type is OrderProcess . ProcessOrderCmdImpl task command is called.
- Execute OrderProcessPreApprovalCmd, which invokes PreProcessOrderCmd
- Execute OrderProcessCheckApprovalCmd to check whether approval is required
- Execute OrderProcessPostApprovalCmd, which invokes ProcessOrderCmd
Note:
If your store does not require approval of the order, You do not require Business Flow. Set BusinessFlowEventListener to false in ws-server.xml. This will call processOrderCmd Directly.