I found the way to generate the popup.
But now my problem is how can I navigate( Complete the task from that level) the task from the Inbox after clicking OK button.
There are several customized buttons in the form (e.g 'APPROVE', 'RECHECK' , 'CANCEL' etc.)
I want to make the instance navigate to next level based on the button clicked.
1. User will click on the 'CANCEL' button
2. Popup will display to confirm the action
3. When user click OK in the popup window task should be 'CANCELLED'
(My problem is how to catch the button action he has performed )
Any Ideas ??
See if this post of mine helps: How to configure Task Flow with Pop up button Outocme
I intercept many of my Actions for custom validations, pop ups for Confirmation etc. In Pop ups, based on button click, either I leave the task as it is or just invoke the out of box action method for that using APIs means getting bindings of that action. First thing you should know and be familiar is how to invoke Actions programmatically like from Managed Bean either using out of box invokeActionBean or getting Bindings. After this rest is all easy.