Automatic task creation for predictive maintenance