Package io.camunda.client.impl.command
Class CompleteUserTaskJobResultImpl
java.lang.Object
io.camunda.client.impl.command.CompleteUserTaskJobResultImpl
- All Implemented Interfaces:
CompleteJobResult,CompleteUserTaskJobResultStep1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncorrect(JobResultCorrections corrections) Applies corrections to the user task attributes.correct(UnaryOperator<JobResultCorrections> corrections) Dynamically applies corrections to the user task attributes using a lambda expression.correctAssignee(String assignee) Correct the assignee of the task.correctCandidateGroups(List<String> candidateGroups) Correct the candidate groups of the task.correctCandidateUsers(List<String> candidateUsers) Correct the candidate users of the task.correctDueDate(String dueDate) Correct the due date of the task.correctFollowUpDate(String followUpDate) Correct the follow up date of the task.correctPriority(Integer priority) Correct the priority of the task.deniedReason(String deniedReason) Indicates the reason why the worker denied the job.deny(boolean isDenied) Indicates whether the worker denies the work, i.e. explicitly doesn't approve it.Indicates whether the worker denies the work, i.e. explicitly doesn't approve it.getType()Get the type of the job result.booleanisDenied()
-
Constructor Details
-
CompleteUserTaskJobResultImpl
public CompleteUserTaskJobResultImpl()
-
-
Method Details
-
deny
Description copied from interface:CompleteUserTaskJobResultStep1Indicates whether the worker denies the work, i.e. explicitly doesn't approve it. For example, a user task listener can deny the completion of a task by setting this flag to true. In this example, the completion of a task is represented by a job that the worker can complete as denied. As a result, the completion request is rejected and the task remains active. Defaults tofalse.- Specified by:
denyin interfaceCompleteUserTaskJobResultStep1- Parameters:
isDenied- indicates if the worker has denied the reason for the job- Returns:
- this job result
-
deny
Description copied from interface:CompleteUserTaskJobResultStep1Indicates whether the worker denies the work, i.e. explicitly doesn't approve it. For example, a user task listener can deny the completion of a task by setting this flag to true. In this example, the completion of a task is represented by a job that the worker can complete as denied. As a result, the completion request is rejected and the task remains active. Defaults tofalse. This method also allows setting the reason for denying the job. Default to an empty string.- Specified by:
denyin interfaceCompleteUserTaskJobResultStep1- Parameters:
isDenied- indicates if the worker has denied the reason for the jobdeniedReason- indicates the reason why the worker denied the job- Returns:
- this job result
-
deniedReason
Description copied from interface:CompleteUserTaskJobResultStep1Indicates the reason why the worker denied the job. For example, a user task listener can deny the completion of a task by setting the deny flag to true and specifying the reason to deny. Defaults to an empty string.- Specified by:
deniedReasonin interfaceCompleteUserTaskJobResultStep1- Parameters:
deniedReason- indicates the reason why the worker denied the job- Returns:
- this job result
-
correct
Description copied from interface:CompleteUserTaskJobResultStep1Applies corrections to the user task attributes.This method allows the worker to modify key attributes of the user task (such as
assignee,candidateGroups, and so on).- Specified by:
correctin interfaceCompleteUserTaskJobResultStep1- Parameters:
corrections- the corrections to apply to the user task.- Returns:
- this job result
-
correct
Description copied from interface:CompleteUserTaskJobResultStep1Dynamically applies corrections to the user task attributes using a lambda expression.This method is a functional alternative to
CompleteUserTaskJobResultStep1.correct(JobResultCorrections). It allows the worker to modify key user task attributes (such asassignee,dueDate,priority, and so on) directly via a lambda expression. The lambda receives the currentJobResultCorrectionsinstance, which can be updated as needed. If no corrections have been set yet, a defaultJobResultCorrectionsinstance is provided.- Specified by:
correctin interfaceCompleteUserTaskJobResultStep1- Parameters:
corrections- a lambda expression to modify theJobResultCorrections.- Returns:
- this job result
-
correctAssignee
Description copied from interface:CompleteUserTaskJobResultStep1Correct the assignee of the task.- Specified by:
correctAssigneein interfaceCompleteUserTaskJobResultStep1- Parameters:
assignee- assignee of the task- Returns:
- this job result
-
correctDueDate
Description copied from interface:CompleteUserTaskJobResultStep1Correct the due date of the task.- Specified by:
correctDueDatein interfaceCompleteUserTaskJobResultStep1- Parameters:
dueDate- due date of the task- Returns:
- this job result
-
correctFollowUpDate
Description copied from interface:CompleteUserTaskJobResultStep1Correct the follow up date of the task.- Specified by:
correctFollowUpDatein interfaceCompleteUserTaskJobResultStep1- Parameters:
followUpDate- follow up date of the task- Returns:
- this job result
-
correctCandidateGroups
Description copied from interface:CompleteUserTaskJobResultStep1Correct the candidate groups of the task.- Specified by:
correctCandidateGroupsin interfaceCompleteUserTaskJobResultStep1- Parameters:
candidateGroups- candidate groups of the task- Returns:
- this job result
-
correctCandidateUsers
Description copied from interface:CompleteUserTaskJobResultStep1Correct the candidate users of the task.- Specified by:
correctCandidateUsersin interfaceCompleteUserTaskJobResultStep1- Parameters:
candidateUsers- candidate users of the task- Returns:
- this job result
-
correctPriority
Description copied from interface:CompleteUserTaskJobResultStep1Correct the priority of the task.- Specified by:
correctPriorityin interfaceCompleteUserTaskJobResultStep1- Parameters:
priority- priority of the task- Returns:
- this job result
-
isDenied
public boolean isDenied() -
getDeniedReason
-
getCorrections
-
getType
Description copied from interface:CompleteJobResultGet the type of the job result. Depending on the type, different fields will be set on the request. These fields are used to perform follow-up actions on the job upon completion. Eg: changing the assignee of a user task, or activating certain elements of an ad-hoc sub process.- Specified by:
getTypein interfaceCompleteJobResult- Returns:
- the type of the job result
-