Package io.jmix.bpmui.processform
Class ProcessFormContextImpl
java.lang.Object
io.jmix.bpmui.processform.ProcessFormContextImpl
- All Implemented Interfaces:
ProcessFormContext
@Component("bpm_ProcessFormContext")
@Scope("prototype")
public class ProcessFormContextImpl
extends Object
implements ProcessFormContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormData
protected FrameOwner
protected org.flowable.engine.repository.ProcessDefinition
protected final ProcessStarting
protected org.flowable.task.api.Task
protected final TaskClaiming
protected final TaskCompletion
-
Constructor Summary
ConstructorDescriptionProcessFormContextImpl
(ProcessStarting processStarting, TaskClaiming taskClaiming, TaskCompletion taskCompletion) -
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
setFrameOwner
(FrameOwner frameOwner) 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.
-
Field Details
-
processStarting
-
taskClaiming
-
taskCompletion
-
processDefinition
protected org.flowable.engine.repository.ProcessDefinition processDefinition -
task
protected org.flowable.task.api.Task task -
frameOwner
-
formData
-
-
Constructor Details
-
ProcessFormContextImpl
@Autowired public ProcessFormContextImpl(ProcessStarting processStarting, TaskClaiming taskClaiming, TaskCompletion taskCompletion)
-
-
Method Details
-
setFrameOwner
- Specified by:
setFrameOwner
in interfaceProcessFormContext
-
getProcessDefinition
public org.flowable.engine.repository.ProcessDefinition getProcessDefinition()- Specified by:
getProcessDefinition
in interfaceProcessFormContext
-
setProcessDefinition
public void setProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) - Specified by:
setProcessDefinition
in interfaceProcessFormContext
-
getTask
public org.flowable.task.api.Task getTask()- Specified by:
getTask
in interfaceProcessFormContext
-
setTask
public void setTask(org.flowable.task.api.Task task) - Specified by:
setTask
in interfaceProcessFormContext
-
getFormData
- Specified by:
getFormData
in interfaceProcessFormContext
-
setFormData
- Specified by:
setFormData
in interfaceProcessFormContext
-
processStarting
Description copied from interface:ProcessFormContext
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();
- Specified by:
processStarting
in interfaceProcessFormContext
-
taskClaiming
Description copied from interface:ProcessFormContext
Returns a task claiming builder. A returned object contains an info about the task to be claimedUsage example:
processFormContext.taskClaiming() .claim();
- Specified by:
taskClaiming
in interfaceProcessFormContext
-
taskCompletion
Description copied from interface:ProcessFormContext
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();
- Specified by:
taskCompletion
in interfaceProcessFormContext
-