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
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbulkDeleteFormInstancesByProcessInstanceIds(Collection<String> processInstanceIds) voidbulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType) createFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) createFormInstanceWithScopeId(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) filterFormValues(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String, Object> formValues) Filter the form values based on the defined output mappings.getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables) getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelById(String formInstanceId, Map<String, Object> variables) getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables) getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables) getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables) getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables) getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) byte[]getFormInstanceValues(String formInstanceId) getFormModelWithVariablesById(String formId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables) getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables) getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getSavedFormVariables(FormInstance formInstance) getStartFormVariables(String processInstanceId, String scopeId) getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values) getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values, String outcome) saveFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) saveFormInstanceByFormDefinitionId(Map<String, Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) saveFormInstanceWithScopeId(Map<String, Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) saveFormInstanceWithScopeId(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, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
FormServiceImpl
public FormServiceImpl()
-
-
Method Details
-
getVariablesFromFormSubmission
-
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
- Specified by:
getFormInstanceValuesin interfaceFormService
-
createFormInstanceQuery
- Specified by:
createFormInstanceQueryin interfaceFormService
-
deleteFormInstance
- Specified by:
deleteFormInstancein interfaceFormService
-
deleteFormInstancesByFormDefinition
- Specified by:
deleteFormInstancesByFormDefinitionin interfaceFormService
-
deleteFormInstancesByProcessDefinition
- Specified by:
deleteFormInstancesByProcessDefinitionin interfaceFormService
-
deleteFormInstancesByScopeDefinition
- Specified by:
deleteFormInstancesByScopeDefinitionin interfaceFormService
-
getSavedFormVariables
-
getStartFormVariables
-
bulkDeleteFormInstancesByProcessInstanceIds
-
bulkDeleteFormInstancesByScopeIdsAndScopeType
public void bulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType)
-