Skip to Content
0

Task with Terminating Events

Apr 25, 2017 at 06:43 AM

35

avatar image

Hi Good day,

Before posting this thread i have gone through all the threads but i dint really get hence am posting

Here is my Scenario:

Am creating workflow for CRM Service Request for BUS2000223 delegated to ZBUS2000223.

1.I trigger the workflow by a BADI when the STATUS = SENDTO(E0002) using the FM\

2. I get the workitem to my inbox and i just open but do not change the STATUS and just close it, once i close the workitem goes off.

3. To keep the workitem till I change the STATUS from E0002 to E0003 the workitem should stay back in my inbox.

4. For this i have created one more EVENT call 'INPROGRESS'. for the above task i have created TERMINATING EVENTS

But as soon as i get the workitem before i change the status and close, the workitem goes off.

What am i missing, can anyone please shed some light on it.

thank you,

j.

te.jpg (41.3 kB)
fm.jpg (50.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Pavan Bhamidipati Apr 26, 2017 at 07:36 AM
0

Hi,

if in case you want to go with the approach of terminating events then you should make the task asynchronous task. I mean you should disable / un-check the checkbox "Synchronous Object Method."

The second option would be just remove the terminating event and implementation code of raising the terminating event from within the function module. Enable the check box "Confirm End of Processing" and keep other things as it is in the below screen shot.

I hope these approaches should help you to resolve your issues.

Thanks, Pavan


wf1.png (29.1 kB)
Share
10 |10000 characters needed characters left characters exceeded