Task

Last modified 25 Nov 2021 19:08 +01:00

Introduction

The Task structure provides a context to most midPoint operations and functions. It contains contextual information such as identity of the user that invoked the operation, it contains security context, it may be bound to scheduling data and so on. It also holds the operation result data structure. Each "business" operation in midPoint should be executed in a context of a task.

Task Manager

Tasks are managed by Task Manager component. The task manager creates the tasks and manages the lifecycle of tasks. Task manager can create broad range of tasks from lightweight synchronous tasks to a persistent asynchronous and scheduled tasks. See the Task Manager page for more details.

Task Usage

Creating a lightweight task instance
Task task = taskManager.createTaskInstance(MyClass.class.getName() + ".myOperation");
OperationResult result = task.getResult();
Was this page helpful?
YES NO
Thanks for your feedback