cancel
Showing results for 
Search instead for 
Did you mean: 

take action after 1st approval

Former Member
0 Kudos
56

Hi Experts,

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?

Thanks

t7

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you use Application-Controlled Workflow you can add background task in the workflow template.

Both Process-Controlled Workflow and Application-Controlled Workflow are supported in SRM 7.0.

Regards,

Masa