@Component(value="bpm_ProcessStarting") public class ProcessStartingImpl extends java.lang.Object implements ProcessStarting
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
businessKey |
protected io.jmix.ui.screen.FrameOwner |
frameOwner |
protected org.flowable.engine.repository.ProcessDefinition |
processDefinition |
protected ProcessFormVariablesCollector |
processFormVariablesCollector |
protected java.util.Map<java.lang.String,java.lang.Object> |
processVariables |
protected org.flowable.engine.RuntimeService |
runtimeService |
protected boolean |
saveInjectedProcessVariables |
Constructor and Description |
---|
ProcessStartingImpl() |
Modifier and Type | Method and Description |
---|---|
ProcessStarting |
addProcessVariable(java.lang.String name,
java.lang.Object value)
Adds a single process variable.
|
ProcessStarting |
saveInjectedProcessVariables()
Values of form fields that are annotated with the
ProcessVariable will be collected and written
to process variables when the process is started. |
org.flowable.engine.runtime.ProcessInstance |
start()
Starts the process using the
ProcessDefinition from the ProcessFormContextImpl |
ProcessStarting |
withBusinessKey(java.lang.String businessKey) |
ProcessStarting |
withFrameOwner(io.jmix.ui.screen.FrameOwner frameOwner) |
ProcessStarting |
withProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) |
ProcessStarting |
withProcessVariables(java.util.Map<java.lang.String,java.lang.Object> processVariables) |
@Autowired protected org.flowable.engine.RuntimeService runtimeService
@Autowired protected ProcessFormVariablesCollector processFormVariablesCollector
protected io.jmix.ui.screen.FrameOwner frameOwner
protected java.lang.String businessKey
protected org.flowable.engine.repository.ProcessDefinition processDefinition
protected java.util.Map<java.lang.String,java.lang.Object> processVariables
protected boolean saveInjectedProcessVariables
public ProcessStarting withFrameOwner(io.jmix.ui.screen.FrameOwner frameOwner)
withFrameOwner
in interface ProcessStarting
public ProcessStarting withProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition)
withProcessDefinition
in interface ProcessStarting
public ProcessStarting withBusinessKey(java.lang.String businessKey)
withBusinessKey
in interface ProcessStarting
public ProcessStarting withProcessVariables(java.util.Map<java.lang.String,java.lang.Object> processVariables)
withProcessVariables
in interface ProcessStarting
public ProcessStarting addProcessVariable(java.lang.String name, java.lang.Object value)
ProcessStarting
addProcessVariable
in interface ProcessStarting
public ProcessStarting saveInjectedProcessVariables()
ProcessStarting
ProcessVariable
will be collected and written
to process variables when the process is started.
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.
saveInjectedProcessVariables
in interface ProcessStarting
public org.flowable.engine.runtime.ProcessInstance start()
ProcessStarting
ProcessDefinition
from the ProcessFormContextImpl
start
in interface ProcessStarting