close

Filter

loading table of contents...

Studio Developer Manual / Version 2307

Table Of Contents

5.8.3 Executing Jobs

After defining and instantiating your job, you need to execute the job via the globally defined variable jobService. Together with the job itself you can pass a success, a failure and an abort function. Additionally, you can pass a groupId. If a job with a certain groupId is already running and another job with the same groupId gets executed by the IJobService, the first job will be automatically canceled.

Note

Note

You can always rely on the fact that one of the callbacks (success, failure or abort) is triggered after the job execution has finished. After that, no additional callbacks will be triggered.

The same job instance can be executed multiple times as long as it is stateless.

The jobService returns a TrackedJob object, which can be used to receive the status of a job and its result when the execution was successful. In case the job fails the result contains the error message. An abortion of the job yields no result.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.