Using the Task API

The Task API exposes a service that can be injected in any Angular component. For more details, please refer to Task API documentation.

It allows interacting with tasks and jobs. A job is a single task execution, and a task can have multiple jobs. For more details, please refer to Task Events API.

The API can be used to:

  • Retrieve the available Tasks (Optimization Server Tasks or Backend Tasks)

  • Retrieve a Task Definition (Description, version, input and output parameters, etc.)

  • Retrieve running or completed Jobs

  • Launch a new Job

Task Events are dispatched by the Framework when a Job status, progress or result changes. The application can also fire a REQUEST_RUN_NEW_JOB to request the Framework the Job Creation Wizard.

See Task Events API for more details.