Package com.flowable.form.engine.impl
Class FormServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<FormEngineConfiguration>
-
- com.flowable.form.engine.impl.FormServiceImpl
-
- All Implemented Interfaces:
CoreFormService,FormService
public class FormServiceImpl extends CommonEngineServiceImpl<FormEngineConfiguration> implements CoreFormService
- Author:
- Tijs Rademakers
-
-
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 voidbulkDeleteFormInstancesByProcessInstanceIds(Collection<String> processInstanceIds)voidbulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType)FormInstancecreateFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)FormInstanceQuerycreateFormInstanceQuery()FormInstancecreateFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)voiddeleteFormInstance(String formInstanceId)voiddeleteFormInstancesByFormDefinition(String formDefinitionId)voiddeleteFormInstancesByProcessDefinition(String processDefinitionId)voiddeleteFormInstancesByScopeDefinition(String scopeDefinitionId)Map<String,Object>filterFormValues(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String,Object> formValues)Filter the form values based on the defined output mappings.FormInstanceInfogetFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelById(String formInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)byte[]getFormInstanceValues(String formInstanceId)FormInfogetFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables)FormInfogetFormModelWithVariablesById(String formId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInfogetFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables)FormInfogetFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInfogetFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables)FormInfogetFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)Map<String,Object>getSavedFormVariables(FormInstance formInstance)Map<String,Object>getStartFormVariables(String processInstanceId, String scopeId)Map<String,Object>getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values)Map<String,Object>getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values, String outcome)FormInstancesaveFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)FormInstancesaveFormInstanceByFormDefinitionId(Map<String,Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)FormInstancesaveFormInstanceWithScopeId(Map<String,Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)FormInstancesaveFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)voidvalidateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values)-
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
-
getVariablesFromFormSubmission
public Map<String,Object> getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values)
-
validateFormFields
public void validateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values)
- Specified by:
validateFormFieldsin interfaceFormService
-
getVariablesFromFormSubmission
public Map<String,Object> getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values, String outcome)
- Specified by:
getVariablesFromFormSubmissionin interfaceFormService
-
createFormInstance
public FormInstance createFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
- Specified by:
createFormInstancein interfaceFormService
-
saveFormInstance
public FormInstance saveFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstancein interfaceFormService
-
saveFormInstanceByFormDefinitionId
public FormInstance saveFormInstanceByFormDefinitionId(Map<String,Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstanceByFormDefinitionIdin interfaceFormService
-
createFormInstanceWithScopeId
public FormInstance createFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
- Specified by:
createFormInstanceWithScopeIdin interfaceFormService
-
saveFormInstanceWithScopeId
public FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstanceWithScopeIdin interfaceFormService
-
saveFormInstanceWithScopeId
public FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstanceWithScopeIdin interfaceFormService
-
getFormModelWithVariablesById
public FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables)
- Specified by:
getFormModelWithVariablesByIdin interfaceFormService
-
getFormModelWithVariablesById
public FormInfo getFormModelWithVariablesById(String formId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormModelWithVariablesByIdin interfaceFormService
-
getFormModelWithVariablesByKey
public FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables)
- Specified by:
getFormModelWithVariablesByKeyin interfaceFormService
-
getFormModelWithVariablesByKey
public FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormModelWithVariablesByKeyin interfaceFormService
-
getFormModelWithVariablesByKeyAndParentDeploymentId
public FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables)
- Specified by:
getFormModelWithVariablesByKeyAndParentDeploymentIdin interfaceFormService
-
getFormModelWithVariablesByKeyAndParentDeploymentId
public FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormModelWithVariablesByKeyAndParentDeploymentIdin interfaceFormService
-
getFormInstanceModelById
public FormInstanceInfo getFormInstanceModelById(String formInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByIdin interfaceFormService
-
getFormInstanceModelById
public FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByIdin interfaceFormService
-
getFormInstanceModelById
public FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByIdin interfaceFormService
-
getFormInstanceModelByKey
public FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyin interfaceFormService
-
getFormInstanceModelByKey
public FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyin interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdin interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdin interfaceFormService
-
getFormInstanceModelByKeyAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyAndScopeIdin interfaceFormService
-
getFormInstanceModelByKeyAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyAndScopeIdin interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdin interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdin interfaceFormService
-
filterFormValues
public Map<String,Object> filterFormValues(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String,Object> formValues)
Description copied from interface:CoreFormServiceFilter the form values based on the defined output mappings.- Specified by:
filterFormValuesin interfaceCoreFormService- Parameters:
elementId- element id to which the form is attached to.elementType- element type to which the form is attached to.scopeDefinitionId- definition id to which the form is attached to.scopeType- scope type to which the form is attached to.- Returns:
- the filtered values.
-
getFormInstanceValues
public byte[] getFormInstanceValues(String formInstanceId)
- Specified by:
getFormInstanceValuesin interfaceFormService
-
createFormInstanceQuery
public FormInstanceQuery createFormInstanceQuery()
- Specified by:
createFormInstanceQueryin interfaceFormService
-
deleteFormInstance
public void deleteFormInstance(String formInstanceId)
- Specified by:
deleteFormInstancein interfaceFormService
-
deleteFormInstancesByFormDefinition
public void deleteFormInstancesByFormDefinition(String formDefinitionId)
- Specified by:
deleteFormInstancesByFormDefinitionin interfaceFormService
-
deleteFormInstancesByProcessDefinition
public void deleteFormInstancesByProcessDefinition(String processDefinitionId)
- Specified by:
deleteFormInstancesByProcessDefinitionin interfaceFormService
-
deleteFormInstancesByScopeDefinition
public void deleteFormInstancesByScopeDefinition(String scopeDefinitionId)
- Specified by:
deleteFormInstancesByScopeDefinitionin interfaceFormService
-
getSavedFormVariables
public Map<String,Object> getSavedFormVariables(FormInstance formInstance)
-
getStartFormVariables
public Map<String,Object> getStartFormVariables(String processInstanceId, String scopeId)
-
bulkDeleteFormInstancesByProcessInstanceIds
public void bulkDeleteFormInstancesByProcessInstanceIds(Collection<String> processInstanceIds)
-
bulkDeleteFormInstancesByScopeIdsAndScopeType
public void bulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType)
-
-