The quote says that, ‘taskVersionNumber’ can be used to check if the task is out of sync.
But as we are using webMethods 7.1.2 version, taskVersionNumber is not available in TaskInfo. Hence, as a workaround I implemented my code in the following way.
if (Task is out of date error occured){
call applyChanges method of MWS Task API one more time.
}
This second time call successfully updated Task details to database.
Though it resolved the issue, I am still not clear, why the second time call didn’t give exception ‘Task is out of Date, Please refresh’.
Could you please let me know if you have any inputs on this?