@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 ProcessStartingpublic ProcessStarting withProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition)
withProcessDefinition in interface ProcessStartingpublic ProcessStarting withBusinessKey(java.lang.String businessKey)
withBusinessKey in interface ProcessStartingpublic ProcessStarting withProcessVariables(java.util.Map<java.lang.String,java.lang.Object> processVariables)
withProcessVariables in interface ProcessStartingpublic ProcessStarting addProcessVariable(java.lang.String name, java.lang.Object value)
ProcessStartingaddProcessVariable in interface ProcessStartingpublic ProcessStarting saveInjectedProcessVariables()
ProcessStartingProcessVariable 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 ProcessStartingpublic org.flowable.engine.runtime.ProcessInstance start()
ProcessStartingProcessDefinition from the ProcessFormContextImplstart in interface ProcessStarting