on 2010 Jun 08 10:17 AM
Hi all,
In SRM 7.0, The Badi '/SAPSRM/BD_WF_PROCESS_RESTART' is used to determine if the workflow has to be restarted when it is already in process. For eg., if a shopping cart is in 2nd level approval and the creator of the shopping cart edits the cart, then the current workflow is suspended and it goes for approval from 1st level. In this Badi enhancement, the method 'SUPPRESS_PROCESS_RESTART' is used to determine the restart.
1) I want to know how and where the BAdi is called.
I also see in workflow Ws40000015(sub workflow of WS40000014), a wait for event step which has 'INTERRUPT' event of class '/SAPSRM/CL_WF_PROCESS_SBWF'.
2) Can anyone tell where this event is triggered?
3) Is it not possible to restart a workflow for a shopping if already an instance is running for the same shopping cart?
4) Is it possible to write any code to kill the current running process and start a new instance of the workflow?
Thanks,
Sivagami R
Request clarification before answering.
Hi,
Just info for 4).
Class Interface: /SAPSRM/CL_WF_ADV_FACADE
Methods:
RESTART_PROCESS
CANCEL_PROCESS_FOR_RESTART
START_PROCESS
INTERRUPT_PROCESS
WAPI FM:
SAP_WAPI_ADM_WORKFLOW_CANCEL
SAP_WAPI_ADM_WORKFLOW_RESTART
SAP_WAPI_ADM_WORKFLOW_RESUME
SAP_WAPI_ADM_WORKFLOW_SUSPEND
SAP_WAPI_ADM_WORKITEM_BACK
SAP_WAPI_ADM_WORKITEM_REDORULE
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Sivangami,
Did you get reason for a wait for event step which has 'INTERRUPT' event of class '/SAPSRM/CL_WF_PROCESS_SBWF.
I am also facing same issue .
Satyajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.