I was going to create a workflow to auto-approve the first level upon saving the PO under $5000 limit. I have 3 levels of approvers.
A $5000 PO when saved triggers work items to the next level approver inbox. In our test scenario, When a PO is saved, The workflow is getting auto-triggered 3 times by the receiver custom function module copied from SWW_WI_CREATE_VIA_EVENT_INTERN. This is sending 3 workitems for each trigger to the next level approver inbox by WF-BATCH background user. For each workflow set there are 3 work items names; one for RELEASESTEPCREATED, 2nd one for RELEASED; 3rd for CHANGED. These are BUS2012 events. Appreciate ideas to resolve the same. I have only RELEASESTEPCREATED active for the event trigger and no others. Why are other events CHANGED and RELEASED getting triggered and how to stop them for getting triggered. Secondly, How to set a breakpoint when the workflow is triggered by background user such as WF-BATCH and make the program to halt there; Currently it is not halting at the breakpoint.