Package org.flowable.engine.impl
Class FormServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ProcessEngineConfigurationImpl>
-
- org.flowable.engine.impl.FormServiceImpl
-
- All Implemented Interfaces:
FormService
public class FormServiceImpl extends CommonEngineServiceImpl<ProcessEngineConfigurationImpl> implements FormService
- Author:
- Tom Baeyens, Falko Menge (camunda)
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description FormServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetRenderedStartForm(String processDefinitionId)Rendered form generated by the default build-in form engine for starting a new process instance.ObjectgetRenderedStartForm(String processDefinitionId, String engineName)Rendered form generated by the given build-in form engine for starting a new process instance.ObjectgetRenderedTaskForm(String taskId)Rendered form generated by the default build-in form engine for completing a task.ObjectgetRenderedTaskForm(String taskId, String engineName)Rendered form generated by the given build-in form engine for completing a task.StartFormDatagetStartFormData(String processDefinitionId)Retrieves all data necessary for rendering a form to start a new process instance.StringgetStartFormKey(String processDefinitionId)Retrieves a user defined reference to a start form.TaskFormDatagetTaskFormData(String taskId)Retrieves all data necessary for rendering a form to complete a task.StringgetTaskFormKey(String processDefinitionId, String taskDefinitionKey)Retrieves a user defined reference to a task form.voidsaveFormData(String taskId, Map<String,String> properties)Save the data that was entered as properties in a task form.ProcessInstancesubmitStartFormData(String processDefinitionId, String businessKey, Map<String,String> properties)Start a new process instance with the user data that was entered as properties in a start form.ProcessInstancesubmitStartFormData(String processDefinitionId, Map<String,String> properties)Start a new process instance with the user data that was entered as properties in a start form.voidsubmitTaskFormData(String taskId, Map<String,String> properties)Completes a task with the user data that was entered as properties in a task form.-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Method Detail
-
getRenderedStartForm
public Object getRenderedStartForm(String processDefinitionId)
Description copied from interface:FormServiceRendered form generated by the default build-in form engine for starting a new process instance.- Specified by:
getRenderedStartFormin interfaceFormService
-
getRenderedStartForm
public Object getRenderedStartForm(String processDefinitionId, String engineName)
Description copied from interface:FormServiceRendered form generated by the given build-in form engine for starting a new process instance.- Specified by:
getRenderedStartFormin interfaceFormService
-
getRenderedTaskForm
public Object getRenderedTaskForm(String taskId)
Description copied from interface:FormServiceRendered form generated by the default build-in form engine for completing a task.- Specified by:
getRenderedTaskFormin interfaceFormService
-
getRenderedTaskForm
public Object getRenderedTaskForm(String taskId, String engineName)
Description copied from interface:FormServiceRendered form generated by the given build-in form engine for completing a task.- Specified by:
getRenderedTaskFormin interfaceFormService
-
getStartFormData
public StartFormData getStartFormData(String processDefinitionId)
Description copied from interface:FormServiceRetrieves all data necessary for rendering a form to start a new process instance. This can be used to perform rendering of the forms outside of the process engine.- Specified by:
getStartFormDatain interfaceFormService
-
getTaskFormData
public TaskFormData getTaskFormData(String taskId)
Description copied from interface:FormServiceRetrieves all data necessary for rendering a form to complete a task. This can be used to perform rendering of the forms outside of the process engine.- Specified by:
getTaskFormDatain interfaceFormService
-
submitStartFormData
public ProcessInstance submitStartFormData(String processDefinitionId, Map<String,String> properties)
Description copied from interface:FormServiceStart a new process instance with the user data that was entered as properties in a start form.- Specified by:
submitStartFormDatain interfaceFormService
-
submitStartFormData
public ProcessInstance submitStartFormData(String processDefinitionId, String businessKey, Map<String,String> properties)
Description copied from interface:FormServiceStart a new process instance with the user data that was entered as properties in a start form. A business key can be provided to associate the process instance with a certain identifier that has a clear business meaning. For example in an order process, the business key could be an order id. This business key can then be used to easily look up that process instance , seeProcessInstanceQuery.processInstanceBusinessKey(String). Providing such a business key is definitely a best practice.- Specified by:
submitStartFormDatain interfaceFormService- Parameters:
processDefinitionId- the id of the process definition, cannot be null.businessKey- a key that identifies the process instance and can be used to retrieve the process instance later via the query API.properties- the properties to pass, can be null.
-
submitTaskFormData
public void submitTaskFormData(String taskId, Map<String,String> properties)
Description copied from interface:FormServiceCompletes a task with the user data that was entered as properties in a task form.- Specified by:
submitTaskFormDatain interfaceFormService
-
getStartFormKey
public String getStartFormKey(String processDefinitionId)
Description copied from interface:FormServiceRetrieves a user defined reference to a start form. In the Explorer app, it is assumed that the form key specifies a resource in the deployment, which is the template for the form. But users are free to use this property differently.- Specified by:
getStartFormKeyin interfaceFormService
-
getTaskFormKey
public String getTaskFormKey(String processDefinitionId, String taskDefinitionKey)
Description copied from interface:FormServiceRetrieves a user defined reference to a task form. In the Explorer app, it is assumed that the form key specifies a resource in the deployment, which is the template for the form. But users are free to use this property differently. Both arguments can be obtained fromTaskinstances returned by anyTaskQuery.- Specified by:
getTaskFormKeyin interfaceFormService
-
saveFormData
public void saveFormData(String taskId, Map<String,String> properties)
Description copied from interface:FormServiceSave the data that was entered as properties in a task form.- Specified by:
saveFormDatain interfaceFormService
-
-