Hi guys,
I have a custom workflow which has some performance issues so I am now re-designing it, in the process i am faced with an issues. Please give suggestions.
Basically I start a workflow and send an email to a user telling then to go on teh portal and approve a work item. I have created a webdynpro application which has a button approve. On clicking the button i do my processing and in the end i use the WAPI * GET, SET and COMPLETE Function modules to complete the WI. I basicaly dont want to send teh WI to the user inbox as it is killing performance on the inbox.
My Issues is that even thou i am using FM compel the WI is always IN PROCESS, when i debug i see that the status is not set to complete because the user is not the actual agent, so this is a background TASK so WF-BATCH should take care on thing but its not, why?
How else can I restrict a WI from going into inbox without making it a background task?
In SAP_WAPI_SET_WORKITEM_COMPLETED it checksf for Inbox restriction but i cannot findout where that is done.