Package io.jmix.bpmflowui.processform
Class ProcessStartingImpl
java.lang.Object
io.jmix.bpmflowui.processform.ProcessStartingImpl
- All Implemented Interfaces:
ProcessStarting
@Component("bpm_ProcessStarting")
public class ProcessStartingImpl
extends Object
implements ProcessStarting
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected View
protected org.flowable.engine.repository.ProcessDefinition
protected ProcessFormVariablesCollector
protected org.flowable.engine.RuntimeService
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProcessVariable
(String name, Object value) Adds a single process variable.Values of form fields that are annotated with theProcessVariable
will be collected and written to process variables when the process is started.org.flowable.engine.runtime.ProcessInstance
start()
Starts the process using theProcessDefinition
from theProcessFormContextImpl
withBusinessKey
(String businessKey) withOrigin
(View origin) withProcessDefinition
(org.flowable.engine.repository.ProcessDefinition processDefinition) withProcessVariables
(Map<String, Object> processVariables)
-
Field Details
-
runtimeService
@Autowired protected org.flowable.engine.RuntimeService runtimeService -
processFormVariablesCollector
-
origin
-
businessKey
-
processDefinition
protected org.flowable.engine.repository.ProcessDefinition processDefinition -
processVariables
-
saveInjectedProcessVariables
protected boolean saveInjectedProcessVariables
-
-
Constructor Details
-
ProcessStartingImpl
public ProcessStartingImpl()
-
-
Method Details
-
withOrigin
- Specified by:
withOrigin
in interfaceProcessStarting
-
withProcessDefinition
public ProcessStarting withProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) - Specified by:
withProcessDefinition
in interfaceProcessStarting
-
withBusinessKey
- Specified by:
withBusinessKey
in interfaceProcessStarting
-
withProcessVariables
- Specified by:
withProcessVariables
in interfaceProcessStarting
-
addProcessVariable
Description copied from interface:ProcessStarting
Adds a single process variable. Multiple sequential invocations of the method are allowed- Specified by:
addProcessVariable
in interfaceProcessStarting
-
saveInjectedProcessVariables
Description copied from interface:ProcessStarting
Values of form fields that are annotated with theProcessVariable
will be collected and written to process variables when the process is started.- Specified by:
saveInjectedProcessVariables
in interfaceProcessStarting
-
start
public org.flowable.engine.runtime.ProcessInstance start()Description copied from interface:ProcessStarting
Starts the process using theProcessDefinition
from theProcessFormContextImpl
- Specified by:
start
in interfaceProcessStarting
-