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
Modifier and TypeFieldDescriptionprotected String
protected FrameOwner
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) 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:
withFrameOwner
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.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.- 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
-