public interface TaskCompletion
ProcessFormContext
Modifier and Type | Method and Description |
---|---|
TaskCompletion |
addProcessVariable(java.lang.String name,
java.lang.Object value)
Adds a single process variable.
|
void |
complete()
Completes the task using the
Task from the ProcessFormContextImpl |
TaskCompletion |
saveInjectedProcessVariables()
Values of form fields that are annotated with the
ProcessVariable will be collected and written
to process variables when the task is completed. |
TaskCompletion |
withFrameOwner(io.jmix.ui.screen.FrameOwner frameOwner) |
TaskCompletion |
withOutcome(java.lang.String outcome) |
TaskCompletion |
withProcessVariables(java.util.Map<java.lang.String,java.lang.Object> processVariables) |
TaskCompletion |
withTask(org.flowable.task.api.Task task) |
TaskCompletion withFrameOwner(io.jmix.ui.screen.FrameOwner frameOwner)
TaskCompletion withTask(org.flowable.task.api.Task task)
TaskCompletion withProcessVariables(java.util.Map<java.lang.String,java.lang.Object> processVariables)
TaskCompletion addProcessVariable(java.lang.String name, java.lang.Object value)
name
- process variable namevalue
- process variable valueTaskCompletion withOutcome(java.lang.String outcome)
TaskCompletion saveInjectedProcessVariables()
ProcessVariable
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.
void complete()
Task
from the ProcessFormContextImpl