Package io.jmix.bpmui.processform
Class TaskCompletionImpl
java.lang.Object
io.jmix.bpmui.processform.TaskCompletionImpl
- All Implemented Interfaces:
TaskCompletion
@Component("bpm_TaskCompletion")
@Scope("prototype")
public class TaskCompletionImpl
extends Object
implements TaskCompletion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UiEventPublisherprotected FrameOwnerprotected Stringprotected ProcessFormVariablesCollectorprotected booleanprotected org.flowable.task.api.Taskprotected BpmTaskService -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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:
withFrameOwnerin interfaceTaskCompletion
-
withTask
- Specified by:
withTaskin interfaceTaskCompletion
-
withProcessVariables
- Specified by:
withProcessVariablesin interfaceTaskCompletion
-
addProcessVariable
Description copied from interface:TaskCompletionAdds a single process variable. Multiple sequential invocations of the method are allowed- Specified by:
addProcessVariablein interfaceTaskCompletion- Parameters:
name- process variable namevalue- process variable value
-
withOutcome
- Specified by:
withOutcomein interfaceTaskCompletion
-
saveInjectedProcessVariables
Description copied from interface:TaskCompletionValues of form fields that are annotated with theProcessVariablewill be collected and written to process variables when the task is completed.If the operation is invoked from within the
ScreenFragmentthen 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:
saveInjectedProcessVariablesin interfaceTaskCompletion
-
complete
public void complete()Description copied from interface:TaskCompletionCompletes the task using theTaskfrom theProcessFormContextImpl- Specified by:
completein interfaceTaskCompletion
-