function updateLockedTasksForCurrentUser(projectId) {
            var lockedTasksPromise = taskService.getLockedTasksForCurrentUser(projectId);
            lockedTasksPromise.then(function (lockedTasks) {
                vm.lockedTasksForCurrentUser = lockedTasks;
                vm.lockedByCurrentUserVectorLayer.getSource().clear();
                if (vm.lockedTasksForCurrentUser.length > 0) {
                    var features = taskService.getTaskFeaturesByIds(vm.taskVectorLayer.getSource().getFeatures(), vm.lockedTasksForCurrentUser);
                    vm.lockedByCurrentUserVectorLayer.getSource().addFeatures(features);
                }
            }, function () {
                if (vm.lockedByCurrentUserVectorLayer) {
                    vm.lockedByCurrentUserVectorLayer.getSource().clear();
                }
                vm.lockedTasksForCurrentUser = [];
            });
        }
/**
         * Updates the map and contoller data for tasks locked by current user
         * @param projectId
         */
Updates the map and contoller data for tasks locked by current user
@param projectId
Updates the map and contoller data for tasks locked by current user @param projectId
function updateLockedTasksForCurrentUser(projectId) {
            var lockedTasksPromise = taskService.getLockedTasksForCurrentUser(projectId);
            lockedTasksPromise.then(function (lockedTasks) {
                vm.lockedTasksForCurrentUser = lockedTasks;
                vm.lockedByCurrentUserVectorLayer.getSource().clear();
                if (vm.lockedTasksForCurrentUser.length > 0) {
                    var features = taskService.getTaskFeaturesByIds(vm.taskVectorLayer.getSource().getFeatures(), vm.lockedTasksForCurrentUser);
                    vm.lockedByCurrentUserVectorLayer.getSource().addFeatures(features);
                }
            }, function () {
                if (vm.lockedByCurrentUserVectorLayer) {
                    vm.lockedByCurrentUserVectorLayer.getSource().clear();
                }
                vm.lockedTasksForCurrentUser = [];
            });
        }
function updateLockedTasksForCurrentUser ( projectId ) { var lockedTasksPromise = taskService . getLockedTasksForCurrentUser ( projectId ) ; lockedTasksPromise . then ( function ( lockedTasks ) { vm . lockedTasksForCurrentUser = lockedTasks ; vm . lockedByCurrentUserVectorLayer . getSource ( ) . clear ( ) ; if ( vm . lockedTasksForCurrentUser . length > 0 ) { var features = taskService . getTaskFeaturesByIds ( vm . taskVectorLayer . getSource ( ) . getFeatures ( ) , vm . lockedTasksForCurrentUser ) ; vm . lockedByCurrentUserVectorLayer . getSource ( ) . addFeatures ( features ) ; } } , function ( ) { if ( vm . lockedByCurrentUserVectorLayer ) { vm . lockedByCurrentUserVectorLayer . getSource ( ) . clear ( ) ; } vm . lockedTasksForCurrentUser = [ ] ; } ) ; }
Updates the map and contoller data for tasks locked by current user
 @param projectId
Updates the map and contoller data for tasks locked by current user @param projectId