Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Terminating Event not working - Stale Workitem exists

$
0
0

Dear Friends,

 

I have configured custom PO WF with trigerring event as bus2012 - releasestepcreated.

My workflow works well, but there is a problem of stale workitem.

 

Consider below scenario:

 

==> purchaseorder1 price - 1000 approver mr X -  workitem triggers well to Mr. X inbox.

 

PO is not yet approved and in the mean time some one changes the PO quantity and amount changes from 1000 to 2000. Now the release strategy determines new approver.

 

==> purchaseorder1 price - 2000 approver mr Y - workitem triggers well to Mr. Y inbox.

 

Problem is there is a stale record in Mr.X inbox.... So to handle this stale record with Mr. X I have created terminating event to the approval task. Event used is bus2012 - cancelled.

 

Even if I trigger cancelled explicity from BADI in PO POST, older workitem doesnt gets complete.

 

I want to control this with Terminating event, where have i gone wrong? Can some1 please suggest.

 

 

Thanks & Regards,

Narendra.


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>