function sendAjax() {
$.ajax({
type: "post",
url: "/flow/process/trace.afca?pid=" + pid + "&ratio=1.3",
dataType: 'json',
async: false,
success: function (response) {
getDate = response;
}
});
return getDate;
} setInterval(function () {
sendAjax();
newDate = getDate;
return newDate
}(), 3000);