Hi,
I do not have the ability to try this out myself in the customer environment and hence this post to know if this is possible.
The Customer has some Task Portlets and there is a custom button (Command Button) in the Task View that basically executes completeTask() and then does a redirect(Url) to go back to the previous screen which is the Search Task Portlet to display the Open Tasks.
At times, the above action of clicking a command button (that completes a task in TE and then does URL redirect) takes about a minute to go back to the previous screen (Task Search Portlet). While there is a separate effort to identify the slow response and its intermittent nature, I wanted to find out the following.
From a User perspective, the action of clicking a button simply must go and complete the task asynchronously and then take him back to the previous screen regardless of the latency in MWS Database etc.
Can we use Async Command Button or Extended Portlet URL + Portlet Script Block to make the completeTask and Redirection as parallel activities? Meaning, the Redirection should not wait for CompleteTask to finish and instead just call the Bean method to completeTask and redirect to previous screen.
I believe we should be able to achieve this from my past experience, but just wanted a second opinion? Any other control/approach is much appreciated.
Thanks,
Best regards,
Raj