Skip to Content

Deleting the workflow open instances

Hi,

I have the below scenario, where user creates a PO and WF triggers and waiting for the approver to approve it. Before approver approves it another user releases the PO manually. In this scenario, when the PO is released, the WF instance which is in In Process status should be completed and the WI for the approval should disappear from the approvers inbox.

Could anyone tell me how to achieve this.

Thanks,

MK.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 04:30 AM

    Hi,

    Go to tab events under basic data -> version-dependent

    Put RELEASED event and chose the receiver type 1 - cancel workflow

    Ronit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 04:06 AM

    Use terminating events in the task.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Murali Kovur

      Hi,

      IF you are using a user decision step, then in that step, go to "Control" tab and you will know the task id. If it is TS00008267, it's the std. user decision task. I'd say, create your own custom user decision by copying from TS00008267 and use that custom task.

      ONce you have the custom task, go to PFTC, and change mode for this task, and you'll find the "Terminating Events" tab. And you can specify the cont. element and event..

      But, remember, you hve to have the BO, for which you are raising the Terminating event, as a cont. element in the custom User decision task.

      Hope this helps.

      venu

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2008 at 05:10 AM

    Hi,

    Where are you using user decision tasks ?

    As far as I know, the PO approval is a dialog step. See Standard task TS20000166. This is used for PO approval, but has terminating events. So, this step in the workflow would be completed if the user completes them manually or by using workflows.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 05:46 AM

    From past experience, I've found that Terminating Events do not work with User Decisions.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Besides we had an additional requirement of notifying existing approvers and of manual (external ) release of the document.

      So created a new branch with event reciever for released event, and checked the event container for transaction that generated this event. That way filtered whether it was manual release or via workflow.

      You can use this method and simply let the workflow complete in that branch.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.