Hi folks,
I am bring a new challenge for you!! ;-)
I have a DMI.call that start an asynchronous process. Actually, execute a process into workmanger which send and receive messages to/from a queue. This is the behavior that I am seeing:
After click on the button that start the process, few seconds after I get a message from the server telling me that something wrong has occurred. This message is from catch block in my DMI service method. Meanwhile, I am inspecting the application log and I can realize that the process is still running, sending and receiving messages from the queue. Even so, I click on the button again and almost instantaniously all the expected data is added to the grid on the screen and the second process remains running on the server.
Seems that the callback of my DMI.call is being executed right before that the process really end up, and when the process ends the data is not displayed because de callback has executed before, and when I click on the button for the second time the data retrieved for the first process is shown and the second process remains being executed.
Any idea? Could it helps me?
Vitor Eduardo
I am bring a new challenge for you!! ;-)
I have a DMI.call that start an asynchronous process. Actually, execute a process into workmanger which send and receive messages to/from a queue. This is the behavior that I am seeing:
After click on the button that start the process, few seconds after I get a message from the server telling me that something wrong has occurred. This message is from catch block in my DMI service method. Meanwhile, I am inspecting the application log and I can realize that the process is still running, sending and receiving messages from the queue. Even so, I click on the button again and almost instantaniously all the expected data is added to the grid on the screen and the second process remains running on the server.
Seems that the callback of my DMI.call is being executed right before that the process really end up, and when the process ends the data is not displayed because de callback has executed before, and when I click on the button for the second time the data retrieved for the first process is shown and the second process remains being executed.
Any idea? Could it helps me?
Vitor Eduardo