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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Viewprotected org.flowable.engine.repository.ProcessDefinitionprotected ProcessFormVariablesCollectorprotected org.flowable.engine.RuntimeServiceprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProcessVariable(String name, Object value) Adds a single process variable.Values of form fields that are annotated with theProcessVariablewill be collected and written to process variables when the process is started.org.flowable.engine.runtime.ProcessInstancestart()Starts the process using theProcessDefinitionfrom theProcessFormContextImplwithBusinessKey(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:
withOriginin interfaceProcessStarting
-
withProcessDefinition
public ProcessStarting withProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) - Specified by:
withProcessDefinitionin interfaceProcessStarting
-
withBusinessKey
- Specified by:
withBusinessKeyin interfaceProcessStarting
-
withProcessVariables
- Specified by:
withProcessVariablesin interfaceProcessStarting
-
addProcessVariable
Description copied from interface:ProcessStartingAdds a single process variable. Multiple sequential invocations of the method are allowed- Specified by:
addProcessVariablein interfaceProcessStarting
-
saveInjectedProcessVariables
Description copied from interface:ProcessStartingValues of form fields that are annotated with theProcessVariablewill be collected and written to process variables when the process is started.- Specified by:
saveInjectedProcessVariablesin interfaceProcessStarting
-
start
public org.flowable.engine.runtime.ProcessInstance start()Description copied from interface:ProcessStartingStarts the process using theProcessDefinitionfrom theProcessFormContextImpl- Specified by:
startin interfaceProcessStarting
-