Package org.kie.api.task

## Interface TaskContext

-     public interface TaskContext

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `UserGroupCallback` | `getUserGroupCallback()` | Returns currently configured UserGroupCallback.
    `String` | `getUserId()` | Returns user id who performs the operation
    `Task` | `loadTaskVariables​(Task task)` | Loads task (given as argument) variables - both input and output if exists.

- - ### Method Detail

    - #### getUserGroupCallback

          UserGroupCallback getUserGroupCallback()

      Returns currently configured UserGroupCallback.
      Returns:
        returns user group callback

    - #### loadTaskVariables

          Task loadTaskVariables​(Task task)

      Loads task (given as argument) variables - both input and output if exists. In case variables are already set they are not reread from data store.
      Parameters:
        `task` - task which should have variables (both input and output) set
      Returns:
        returns task with variables set

    - #### getUserId

          String getUserId()

      Returns user id who performs the operation
      Returns:
        user id of the caller