on 11-20-2008 4:54 AM
Hi All,
I have a requirement where i need to know if a workflow instance is running for a given BOR object key. When an instance is running i do not want any other instance of the same BOR object key to be triggered. Instead it needs to be suppressed.
Please tell me how do i implement this criteria in my workflow builder.
Regards,
Imran
Use a Terminating event in your workflow in a parallel task. It will use the new one instead and terminate the existing workitem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a virtual attribute of type BOOLe-BOOLe and in this attribute you use Function Module SAP_WAPI_WORKITEM_TO_OBJECT
Provide the Business Object and the Object Key and if on executing this FM you receive any entry in the Worklist Parameter this mean Wflow is already there and hnce you should set flag as X.
Create a start condition of Wflow using SWB_COND Transaction code and use this Flag for creating the start condition. If you wish you could also use Check Function Module. Search this forum you will get reference on Check FM
Thanks
Arghadip
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.