Package org.flowable.task.api
Interface TaskCompletionBuilder
public interface TaskCompletionBuilder
This builder is an alternative to using any of the complete methods on the TaskService.
- Author:
- Ievgenii Bespal, Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
Completes the task.formDefinitionId
(String formDefinitionId) Sets a form definition id.Sets an outcome for the form.Sets the id of the task which is completed.transientVariable
(String variableName, Object variableValue) Sets one non-persisted instance variables.transientVariableLocal
(String variableName, Object variableValue) Sets one non-persisted instance variables.transientVariables
(Map<String, Object> transientVariables) Sets non-persisted instance variables.transientVariablesLocal
(Map<String, Object> transientVariablesLocal) Sets non-persisted task-local variables.Sets one instance-level variable.variableLocal
(String variableName, Object variableValue) Sets one task-local variables instead of instance-level variables.Sets variables that are added on the instance level.variablesLocal
(Map<String, Object> variablesLocal) Sets task-local variables instead of instance-level variables.
-
Method Details
-
variables
Sets variables that are added on the instance level. -
variablesLocal
Sets task-local variables instead of instance-level variables. -
transientVariables
Sets non-persisted instance variables. -
transientVariablesLocal
Sets non-persisted task-local variables. -
variable
Sets one instance-level variable. -
variableLocal
Sets one task-local variables instead of instance-level variables. -
transientVariable
Sets one non-persisted instance variables. -
transientVariableLocal
Sets one non-persisted instance variables. -
taskId
Sets the id of the task which is completed. -
formDefinitionId
Sets a form definition id. Only needed when there's a form associated with the task. -
outcome
Sets an outcome for the form. -
complete
void complete()Completes the task.
-