Extend API for custom Schedule Tasks to create a custom Schedule Task via API

With the FirstSpirit API and extendsions in the module definition it is now possible to define custom Schedule Tasks which can be added to Schedule Entries via the GUI of the FirstSpirit ServerManager.

However, standard Schedule Tasks like Generation, Deployment and Script can be added via the API. This can be used in other components of modules e.g. to create Schedule Entries in projects automatically or adjust them, if certain circumstance occure.

An example would be: A server Schedule Entry checks if a specific folder is available on the system, then a Schedule Entry is created in every project to deploy to this folder. See also: https://community.e-spirit.com/message/29986

Currently it is not possible to create a custom Schedule Task in such an automatically created Schedule Entry because the API is not available to create a custom Schedule Task.

  1. It should be possible to create a custom Schedule Task based on the de.espirit.firstspirit.scheduling.ScheduleTaskApplication via the FirstSpirit Developer API
  2. It should be possible to configure a custom Schedule Task created via the FirstSpirit Developer API with the specific  de.espirit.firstspirit.scheduling.ScheduleTaskData

1 Comment
kohlbrecher
Crownpeak employee
Crownpeak employee

Hello Stefan,

thank you for your idea to improve FirstSpirit. It is important for us to learn from the experiences of our customers and partners. For this reason we appreciate feedback and any suggestion.

Since FirstSpirit 5.2.2019-09 you can create schedule tasks via API. Please check ScheduleTaskAgent and ScheduleTaskFactory

Best regards

Jan