ClaimTaskCmd should verify userId

Description

The TaskService Spec:
/**

  • Claim responsibility for a task: the given user is made assignee for the task.

  • The difference with {@link #setAssignee(String, String)} is that here

  • a check is done if the provided user is known by the identity component.

  • @param taskId task to claim, cannot be null.

  • @param userId user that claims the task. When userId is null the task is unclaimed,

  • assigned to no one.

  • @throws ActivitiException when the user or task doesn't exist or when the task

  • is already claimed by another user.
    */
    void claim(String taskId, String userId);

... so the ClaimTaskCmd should add code like this before setting the assignee

Environment

None

Assignee

Falko Menge (camunda)

Reporter

Hauke Rabe

Labels

None

Fix versions

Priority

Major
Configure