Page tree
Skip to end of metadata
Go to start of metadata

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

TODO: java example how to create and use task

Creating a lightweight task instance
Task task = taskManager.createTaskInstance(MyClass.class.getName() + ".myOperation");
OperationResult result = task.getResult();

 

See Also

External links

  • No labels