public void filterSkippedTaskStates ( ) { List < TaskState > skippedTaskStates = new ArrayList <> ( ) ; for ( TaskState taskState : this . taskStates . values ( ) ) { if ( taskState . getWorkingState ( ) == WorkUnitState . WorkingState . SKIPPED ) { skippedTaskStates . add ( taskState ) ; } } for ( TaskState taskState : skippedTaskStates ) { removeTaskState ( taskState ) ; addSkippedTaskState ( taskState ) ; } }
Filter the task states corresponding to the skipped work units and add it to the skippedTaskStates