Package io.jmix.bpmui.processform
Class TaskCompletionImpl
java.lang.Object
io.jmix.bpmui.processform.TaskCompletionImpl
- All Implemented Interfaces:
TaskCompletion
@Component("bpm_TaskCompletion")
public class TaskCompletionImpl
extends Object
implements TaskCompletion
-
Field Summary
Modifier and TypeFieldDescriptionprotected UiEventPublisher
protected FrameOwner
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.withFrameOwner
(FrameOwner frameOwner) withOutcome
(String outcome) withProcessVariables
(Map<String, Object> processVariables) withTask
(org.flowable.task.api.Task task)
-
Field Details
-
taskService
-
processFormVariablesCollector
-
eventPublisher
-
frameOwner
-
task
protected org.flowable.task.api.Task task -
outcome
-
processVariables
-
saveInjectedProcessVariables
protected boolean saveInjectedProcessVariables
-
-
Constructor Details
-
TaskCompletionImpl
public TaskCompletionImpl()
-
-
Method Details
-
withFrameOwner
- Specified by:
withFrameOwner
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.If the operation is invoked from within the
ScreenFragment
then process variables will be collected not only from the current fragment but also from the host screen and from all other fragments included to the host screen.- 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
-