Connection closed after getting data, "var" variable is explained, workflow status "rejected" is added, sumworkflows is the new vector that storages the results.