I'm working on a "request approval" portion of an application using CQRS and I'm trying to implement the approval flow using a process manager. At the moment the approval routing is pretty basic:--- A vendor submits a request to become a supplier- A buyer reviews and approves the request- The purchasing dept manager reviews and approves the request- Send a command to create a new vendor aggregate (separate bounded context)Is using a process manager a good fit for a scenario like this?I also need a projection created for showing a list of all vendor requests and their current statuses. As far as I know process managers can only send commands and not publish events, so if I do use a process manager, how would I update the projection "status" field when the request moves from one state into another?Some commands/events I've drawn up for the system:Commands:- SubmitVendorRequest- RequestBuyerApproval (Sends an email)- SubmitBuyerApproval- RequestManagerApproval (Send an email)Events:- VendorRequestSubmitted (Send a confirmation email to the requestor)- RequestApprovedByBuyer- RequestApprovedByManagerAny help/ideas are greatly appreciated. If my post is not clear enough, I can post additional info/code at your request. Thanks.
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.