Claim responsibility for a task: the given user is made {@link Task#getAssignee() assignee} for the task.The difference with {@link #setAssignee(String,String)} is that herea check is done if the task already has a user assigned to it. No check is done whether the 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 ProcessEngineException when the task doesn't exist or when the taskis already claimed by another user.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.