1e41f4b71Sopenharmony_ci# Resource Scheduler Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.resourceschedule.workScheduler 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciThe WorkSchedulerExtensionAbility provides a default WorkSchedulerExtensionContext. 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci**Change Impact** 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ciApplications developed based on OpenHarmony4.0.5.1 and later SDK versions can use the default context attribute as the context environment of a WorkSchedulerExtension. 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci**Key API/Component Changes** 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ciThe context attribute is added to **@ohos.WorkSchedulerExtensionAbility.d.ts**. The **application/WorkSchedulerExtensionContext.d.ts** file is added, which is inherited from ExtensionContext. 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci| Module| Class| Method/Attribute/Enum/Constant| Change Type| 16e41f4b71Sopenharmony_ci| -- | -- | -- | -- | 17e41f4b71Sopenharmony_ci| @ohos.WorkSchedulerExtensionAbility.d.ts | WorkSchedulerExtensionAbility | context: WorkSchedulerExtensionContext; | Added| 18e41f4b71Sopenharmony_ci| application/WorkSchedulerExtensionContext.d.ts | WorkSchedulerExtensionContext | - | Added| 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ci**Adaptation Guide** 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ciThe context is obtained through a WorkSchedulerExtensionAbility child class instance. 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci```ts 25e41f4b71Sopenharmony_ciimport WorkSchedulerExtensionAbility from '@ohos.WorkSchedulerExtensionAbility'; 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciclass MyWorkSchedulerExtensionAbility extends WorkSchedulerExtensionAbility { 28e41f4b71Sopenharmony_ci onWorkStart(workInfo) { 29e41f4b71Sopenharmony_ci let WorkSchedulerExtensionContext = this.context; // Obtain the WorkSchedulerExtensionContext. 30e41f4b71Sopenharmony_ci } 31e41f4b71Sopenharmony_ci} 32e41f4b71Sopenharmony_ci``` 33