Package io.jmix.bpmflowui.processform
Interface TaskCompletion
- All Known Implementing Classes:
TaskCompletionImpl
public interface TaskCompletion
A user task completion builder used in custom process forms
- See Also:
-
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)
-
Method Details
-
withOrigin
-
withTask
-
withProcessVariables
-
addProcessVariable
Adds a single process variable. Multiple sequential invocations of the method are allowed- Parameters:
name
- process variable namevalue
- process variable value
-
withOutcome
-
saveInjectedProcessVariables
TaskCompletion saveInjectedProcessVariables()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. -
complete
void complete()Completes the task using theTask
from theProcessFormContextImpl
-