We are using SRM 7.0 with ECS. The approval workflow for Shopping is Carts document-based (type 1) and comprises several approval levels. The client has a specific requirement that a certain action should take place in background right after the first approval step (which is mandatory for all SC). The question is, how is it possible to detect this approval event.
Iu2019ve considered several possibilities, but to no avail. In particular:
system status: they donu2019t get updated after ordering and complete approval of SC (i.e. between status u2018orderedu2019/u2018awaiting approvalu2019 and u2018approvedu2019/u2018rejectedu2019).
user status: they wouldnu2019t help, since there is no business process you can link to a user status that would help you to detect first approval.
Does anybody know how to achieve this?
The most robust approach would be to react to a workflow event, something along the lines: workitem approved triggers some event -> event listener checks that the object that triggered the event is a shopping cart that has just been approved event listener then calls a (custom) method of BUS2121/function module/whatever for the specific shopping cart instance. Questions: Are there standard workflow events triggered on approval? Which ones? How can a listener be created for them?