Package io.jmix.bpmflowui.processform
Class ProcessFormContextObjectFactory
java.lang.Object
io.jmix.bpmflowui.processform.ProcessFormContextObjectFactory
@Component("bpm_ProcessFormContextObjectFactory")
public class ProcessFormContextObjectFactory
extends Object
Serves as factory for getting ProcessFormContext
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates aProcessFormContext
for a form configured for the start event of the provided process definition.Creates aProcessFormContext
for a form configured for the provided user task.protected void
fillFormParamValuesForStartForm
(FormData formData) protected void
fillFormParamValuesForTaskForm
(FormData formData, String executionId)
-
Field Details
-
runtimeService
@Autowired protected org.flowable.engine.RuntimeService runtimeService
-
-
Constructor Details
-
ProcessFormContextObjectFactory
public ProcessFormContextObjectFactory()
-
-
Method Details
-
getPrototype
-
create
public ProcessFormContext create(org.flowable.engine.repository.ProcessDefinition processDefinition, @Nullable FormData formData) Creates aProcessFormContext
for a form configured for the start event of the provided process definition.- Parameters:
processDefinition
- a process definitionformData
- a source form data including form parameters- Returns:
- created form context
-
create
Creates aProcessFormContext
for a form configured for the provided user task.- Parameters:
task
- a user taskformData
- a source form data including form parameters- Returns:
- created form context
-
fillFormParamValuesForStartForm
-
fillFormParamValuesForTaskForm
-