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 Details

    • runtimeService

      @Autowired protected org.flowable.engine.RuntimeService runtimeService
  • Constructor Details

    • ProcessFormContextObjectFactory

      public ProcessFormContextObjectFactory()
  • Method Details

    • getPrototype

      public ProcessFormContext getPrototype()
    • create

      public ProcessFormContext create(org.flowable.engine.repository.ProcessDefinition processDefinition, @Nullable FormData formData)
      Creates a ProcessFormContext for a form configured for the start event of the provided process definition.
      Parameters:
      processDefinition - a process definition
      formData - a source form data including form parameters
      Returns:
      created form context
    • create

      public ProcessFormContext create(org.flowable.task.api.Task task, @Nullable FormData formData)
      Creates a ProcessFormContext for a form configured for the provided user task.
      Parameters:
      task - a user task
      formData - a source form data including form parameters
      Returns:
      created form context
    • fillFormParamValuesForStartForm

      protected void fillFormParamValuesForStartForm(@Nullable FormData formData)
    • fillFormParamValuesForTaskForm

      protected void fillFormParamValuesForTaskForm(@Nullable FormData formData, String executionId)