@Component(value="bpm_ProcessFormContext") @Scope(value="prototype") public class ProcessFormContextImpl extends java.lang.Object implements ProcessFormContext
Modifier and Type | Field and Description |
---|---|
protected FormData |
formData |
protected io.jmix.ui.screen.FrameOwner |
frameOwner |
protected org.flowable.engine.repository.ProcessDefinition |
processDefinition |
protected ProcessStarting |
processStarting |
protected org.flowable.task.api.Task |
task |
protected TaskClaiming |
taskClaiming |
protected TaskCompletion |
taskCompletion |
Constructor and Description |
---|
ProcessFormContextImpl(ProcessStarting processStarting,
TaskClaiming taskClaiming,
TaskCompletion taskCompletion) |
Modifier and Type | Method and Description |
---|---|
FormData |
getFormData() |
org.flowable.engine.repository.ProcessDefinition |
getProcessDefinition() |
org.flowable.task.api.Task |
getTask() |
ProcessStarting |
processStarting()
Returns a process starting builder.
|
void |
setFormData(FormData formData) |
void |
setFrameOwner(io.jmix.ui.screen.FrameOwner frameOwner) |
void |
setProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) |
void |
setTask(org.flowable.task.api.Task task) |
TaskClaiming |
taskClaiming()
Returns a task claiming builder.
|
TaskCompletion |
taskCompletion()
Returns a task completion builder.
|
protected final ProcessStarting processStarting
protected final TaskClaiming taskClaiming
protected final TaskCompletion taskCompletion
protected org.flowable.engine.repository.ProcessDefinition processDefinition
protected org.flowable.task.api.Task task
protected io.jmix.ui.screen.FrameOwner frameOwner
protected FormData formData
@Autowired public ProcessFormContextImpl(ProcessStarting processStarting, TaskClaiming taskClaiming, TaskCompletion taskCompletion)
public void setFrameOwner(io.jmix.ui.screen.FrameOwner frameOwner)
setFrameOwner
in interface ProcessFormContext
public org.flowable.engine.repository.ProcessDefinition getProcessDefinition()
getProcessDefinition
in interface ProcessFormContext
public void setProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition)
setProcessDefinition
in interface ProcessFormContext
public org.flowable.task.api.Task getTask()
getTask
in interface ProcessFormContext
public void setTask(org.flowable.task.api.Task task)
setTask
in interface ProcessFormContext
public FormData getFormData()
getFormData
in interface ProcessFormContext
public void setFormData(FormData formData)
setFormData
in interface ProcessFormContext
public ProcessStarting processStarting()
ProcessFormContext
Usage example:
processFormContext.processStarting()
.withBusinessKey("order-123")
.addProcessVariable("order", order)
.start();
processStarting
in interface ProcessFormContext
public TaskClaiming taskClaiming()
ProcessFormContext
Usage example:
processFormContext.taskClaiming()
.claim();
taskClaiming
in interface ProcessFormContext
public TaskCompletion taskCompletion()
ProcessFormContext
Usage example:
processFormContext.taskCompletion()
.withOutcome("approve")
.addProcessVariable("order", order)
.complete();
taskCompletion
in interface ProcessFormContext