dashboardsParams = [
"[1]First and last name" : execution.getVariable("clientFullName"),
"[3]General type of disposition" : execution.getVariable("globalCaseTypeName"),
"[4]Product group" : execution.getVariable("caseGroupName"),
"[5]Disposition" : execution.getVariable("caseTypeName"),
"[13]Last person processing:": execution.getVariable('executorFirstName') +
" " +
execution.getVariable('executorLastName') +
" (" +
execution.getVariable('executorId') +
")"
];
if (execution.getVariable("corpFullName") != null) {
dashboardsParams["[2]Company"] = execution.getVariable("corpFullName");
}
dateFormat = "dd.MM.yyyy h:mm"
if (execution.getVariable("startBusinessStatusDate") != null) {
dashboardsParams["[8]Process start date:"] = execution.getVariable("startBusinessStatusDate").format(dateFormat)
}
if (execution.getVariable("tour1BusinessStatusDate") != null) {
dashboardsParams["[9]Start date of round I:"] = execution.getVariable("tour1BusinessStatusDate").format(dateFormat)
}
if (execution.getVariable("tour2BusinessStatusDate") != null) {
dashboardsParams["[10]Start date of round II:"] = execution.getVariable("tour2BusinessStatusDate").format(dateFormat)
}
if (execution.getVariable("tour3BusinessStatusDate") != null) {
dashboardsParams["[11]Start date of round III:"] = execution.getVariable("tour3BusinessStatusDate").format(dateFormat)
}
if (execution.getVariable("endBusinessStatusDate") != null) {
dashboardsParams["[12]Process end date:"] = execution.getVariable("endBusinessStatusDate").format(dateFormat)
}
if (execution.getVariable("sposobWysylki") == "false"){
dashboardsParams["[14]Sending method:"] = "e-mail"
}
execution.setVariable("TASK_DASHBOARD", dashboardsParams);
execution.setVariable("PROCESS_DASHBOARD", dashboardsParams);