How to catch the error message and show it to user when unable to acquire lock on case.
How to catch the error message like " * * Could not lock the cover xxxx ;Agent(xxxx) has it. Please try again later." thrown when a Call to ResumeFlow(Pega-ProCom) activity is failed because of the error message mentioned.
So, Could you please let me know how to get the error message in my activity. I wanted to show the same error in the screen to user.
When you do your obj-open to lock the cover, use the StepStatusFail post-condition on the activity step to catch the error. Also, use the "lockinfo" info on the obj-open to get details about who has it locked. /Eric
In my activity, there is a step(Call ResumeFlow(Pega-ProCom)) for resuming the flow. So, I wanted to get the error message when ResumeFlow activity fails for the reason like " * * Could not lock the cover xxxx ;Agent(xxxx) has it. Please try again later."
Is the call to ResumeFlow happening in a context where the cover should already be locked ? If so, then look back at where that lock should have been acquired since that is where the StepStatusFail will be of use. /Eric
I want to do certain changes in my activity only for catching the error and shown it to user. Also note that the code trying to acquire lock on the cover is in Pega-rules or Pega-ProCom rules which I don't want to override.