Package io.jmix.bpmui.processform
Class ProcessStartingImpl
java.lang.Object
io.jmix.bpmui.processform.ProcessStartingImpl
- All Implemented Interfaces:
ProcessStarting
@Component("bpm_ProcessStarting")
public class ProcessStartingImpl
extends Object
implements ProcessStarting
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected FrameOwnerprotected 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) withFrameOwner(FrameOwner frameOwner) withProcessDefinition(org.flowable.engine.repository.ProcessDefinition processDefinition) withProcessVariables(Map<String, Object> processVariables)
-
Field Details
-
runtimeService
@Autowired protected org.flowable.engine.RuntimeService runtimeService -
processFormVariablesCollector
-
frameOwner
-
businessKey
-
processDefinition
protected org.flowable.engine.repository.ProcessDefinition processDefinition -
processVariables
-
saveInjectedProcessVariables
protected boolean saveInjectedProcessVariables
-
-
Constructor Details
-
ProcessStartingImpl
public ProcessStartingImpl()
-
-
Method Details
-
withFrameOwner
- Specified by:
withFrameOwnerin 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.If the operation is invoked from within the
ScreenFragmentthen 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.- 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
-