I am sending Transaction request from UI to controller and processing that request in controller.
This process may consume time around 10 seconds.
While processing transaction the user has a provision to cancel the transaction.
So i need to check whether cancel button has been clicked before every commit.
I Suspect when cancel button clicked I cannot pass that value as new request since new instance of controller will be created.
Another option is using static
.But suggestions tell me that don't introduce static fields for controllers.
How to handle this situation? (may be with some token or still some easy work around is there ?)