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 Summary
Modifier and TypeFieldDescriptionprotected UiEventPublisher
protected View
protected String
protected ProcessFormVariablesCollector
protected boolean
protected org.flowable.task.api.Task
protected BpmTaskService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProcessVariable
(String name, Object value) Adds a single process variable.void
complete()
Completes the task using theTask
from theProcessFormContextImpl
Values of form fields that are annotated with theProcessVariable
will 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
-
task
protected org.flowable.task.api.Task task -
outcome
-
processVariables
-
saveInjectedProcessVariables
protected boolean saveInjectedProcessVariables
-
-
Constructor Details
-
TaskCompletionImpl
public TaskCompletionImpl()
-
-
Method Details
-
withOrigin
- Specified by:
withOrigin
in interfaceTaskCompletion
-
withTask
- Specified by:
withTask
in interfaceTaskCompletion
-
withProcessVariables
- Specified by:
withProcessVariables
in interfaceTaskCompletion
-
addProcessVariable
Description copied from interface:TaskCompletion
Adds a single process variable. Multiple sequential invocations of the method are allowed- Specified by:
addProcessVariable
in interfaceTaskCompletion
- Parameters:
name
- process variable namevalue
- process variable value
-
withOutcome
- Specified by:
withOutcome
in interfaceTaskCompletion
-
saveInjectedProcessVariables
Description copied from interface:TaskCompletion
Values of form fields that are annotated with theProcessVariable
will be collected and written to process variables when the task is completed.- Specified by:
saveInjectedProcessVariables
in interfaceTaskCompletion
-
complete
public void complete()Description copied from interface:TaskCompletion
Completes the task using theTask
from theProcessFormContextImpl
- Specified by:
complete
in interfaceTaskCompletion
-