Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A scheduled service is just a service component which invokes the schedule API. A service component can be built from the service component archetype - an example of such an implementation is described in /wiki/spaces/PD/pages/24721201 Configuration Management. The basic service component implementation looks like this:

...

Using the code example above, the run method will be invoked every 15 minutes. The name of the job is subject to the guidelines since only one job can use a certain name. Guideline /wiki/spaces/PD/pages/24721296 G151 defines that this name must be prefixed by the plugin ID.

...

If you implement a schedule task, one of the first issues you will face is session management. If, for example, you try to create a media item using the MediaRepositoryManagementService, the service will throw a "no authorization" exception. See /wiki/spaces/PD/pages/24721223 Session Management for more information.

 

Back to Top

...