Hello All,
I know there is no option of "Confirm End of processing" in User Decision but here's the requirement:
I need 2 options in my Workitem:
Button 1: Process XYZ (To call a Transaction)
Button 2: Send back to Prev Dept (Similar like Reject)
When user clicks button 1, he should be taken to a Transaction to do some processing. When he comes back it should ask if the processing was completed and he wants to complete the workitem, something like "Confirm End of Processing in Activity task". If user says, Confirm, the workitem should comlete, but if he says Cancel, it should take him back to User Decision, when he can select Option 2 to send it back to Prev department.
Here are the options I could think of: Create a user Decision Task inside a Loop with those 2 options. Under branch 1, I create an Activity step(Dialog) to call the transaction. And branch 2 will be like Reject to Exit out of Loop, to circle back to the outer Loop for sending back to prev department. When the activity task is executed and user comes back, a new User Decision is created to give user ability to select option 2. Now, between the activity task and new UD in the loop, I need something like "Confirm End of Processing" popup to say either Processing Completed or not. If "Completed", I exit out of the Loop, but if "Not Completed or Cancel", then the new UD is created. I can't enable "Confirm End of Processing" on the Activity Task, as that might keep the activity workitem open.
Please suggest if there's any way to achieve this or any other idea.
Another option I could think of is adding one more button in between to say "Processing Complete" so that when user comes back a new User Decision is created and he can then select "Processing Complete" to exit out of the loop. But I am not sure if this is a good option.