Package io.jmix.bpmflowui.processform
Interface ProcessFormContext
- All Known Implementing Classes:
ProcessFormContextImpl
public interface ProcessFormContext
-
Method Summary
Modifier and TypeMethodDescriptionorg.flowable.engine.repository.ProcessDefinition
org.flowable.task.api.Task
getTask()
Returns a process starting builder.void
setFormData
(FormData formData) void
void
setProcessDefinition
(org.flowable.engine.repository.ProcessDefinition processDefinition) void
setTask
(org.flowable.task.api.Task task) Returns a task claiming builder.Returns a task completion builder.
-
Method Details
-
setOrigin
-
getProcessDefinition
org.flowable.engine.repository.ProcessDefinition getProcessDefinition() -
setProcessDefinition
void setProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) -
getTask
org.flowable.task.api.Task getTask() -
setTask
void setTask(org.flowable.task.api.Task task) -
getFormData
FormData getFormData() -
setFormData
-
processStarting
ProcessStarting processStarting()Returns a process starting builder. A returned object contains an info about the process definition that must be started.Usage example:
processFormContext.processStarting() .withBusinessKey("order-123") .addProcessVariable("order", order) .start();
-
taskClaiming
TaskClaiming taskClaiming()Returns a task claiming builder. A returned object contains an info about the task to be claimedUsage example:
processFormContext.taskClaiming() .claim();
-
taskCompletion
TaskCompletion taskCompletion()Returns a task completion builder. A returned object contains an info about the task to be completedUsage example:
processFormContext.taskCompletion() .withOutcome("approve") .addProcessVariable("order", order) .complete();
-