Skip to Content

Temporary Error Approach

Hi,

I have a User Decision where user can App or Reject PO.

Now if workitem with user-A, and during execution of it, if user-B has opened the PO in edit mode, can I throw a message to user-A stating 'User B has locked the PO' and still the WF instance should be may be 'In Process' state rather than going into error or getting completed?

Can this be handled thru temporary error thing?

or any other approach (quick fix) :) ?

Thanks,

Aditya V

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 13 at 02:46 PM

    Hi

    Yes the temporary error is great when the document is locked.

    The action will be resubmitted (by default) 3 times with a 20 minutes interval.

    Cheers

    Stephane

    Add comment
    10|10000 characters needed characters exceeded

    • hi Stephane,

      thanks for quick response.

      so now where do I use that method is a question.

      My WF starts, it fetches all agents, then moves to UserDecision and based on App or Reject it moves further.

      So now in this case I have created a method for BUS2012 with 'temporary error' but how can I use it in my UserDecision Step so that even if PO is locked by User-B, it will show a message to user stating User-B has locked it and still the workitem remains in his Inbox.

      Thanks,

      Aditya V

  • Feb 13 at 08:49 PM

    I think Stéphane Bailleul misunderstood the question, as I read it this is in the same dialog as the user decision.

    Do you work with Satish by any chance? It's the same scenario he asked a few hours earlier.

    I would use work item exits for this, just implement a before execution exit and try enqueue there. If it fails, pop up a message and stop execution. I can't remember whether it's raise an exception or set appropriate return code, but the work item exit is fairly well documented and there are examples in the system.

    Add comment
    10|10000 characters needed characters exceeded