Package io.jmix.bpmflowui.processform
Class TaskCompletionImpl
java.lang.Object
io.jmix.bpmflowui.processform.TaskCompletionImpl
- All Implemented Interfaces:
- TaskCompletion
@Component("bpm_TaskCompletion")
@Scope("prototype")
public class TaskCompletionImpl
extends Object
implements TaskCompletion
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected UiEventPublisherprotected Viewprotected Stringprotected ProcessFormVariablesCollectorprotected booleanprotected org.flowable.task.api.Taskprotected BpmTaskService
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddProcessVariable(String name, Object value) Adds a single process variable.voidcomplete()Completes the task using theTaskfrom theProcessFormContextImplValues of form fields that are annotated with theProcessVariablewill be collected and written to process variables when the task is completed.withOrigin(View origin) withOutcome(String outcome) withProcessVariables(Map<String, Object> processVariables) withTask(org.flowable.task.api.Task task) 
- 
Field Details- 
taskService
- 
processFormVariablesCollector
- 
eventPublisher
- 
origin
- 
taskprotected org.flowable.task.api.Task task
- 
outcome
- 
processVariables
- 
saveInjectedProcessVariablesprotected boolean saveInjectedProcessVariables
 
- 
- 
Constructor Details- 
TaskCompletionImplpublic TaskCompletionImpl()
 
- 
- 
Method Details- 
withOrigin- Specified by:
- withOriginin interface- TaskCompletion
 
- 
withTask- Specified by:
- withTaskin interface- TaskCompletion
 
- 
withProcessVariables- Specified by:
- withProcessVariablesin interface- TaskCompletion
 
- 
addProcessVariableDescription copied from interface:TaskCompletionAdds a single process variable. Multiple sequential invocations of the method are allowed- Specified by:
- addProcessVariablein interface- TaskCompletion
- Parameters:
- name- process variable name
- value- process variable value
 
- 
withOutcome- Specified by:
- withOutcomein interface- TaskCompletion
 
- 
saveInjectedProcessVariablesDescription copied from interface:TaskCompletionValues of form fields that are annotated with theProcessVariablewill be collected and written to process variables when the task is completed.- Specified by:
- saveInjectedProcessVariablesin interface- TaskCompletion
 
- 
completepublic void complete()Description copied from interface:TaskCompletionCompletes the task using theTaskfrom theProcessFormContextImpl- Specified by:
- completein interface- TaskCompletion
 
 
-