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 SummaryFields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImplcommandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImplconfiguration
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.CommonEngineServiceImplgetCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImplgetConfiguration
- 
Constructor Details- 
FormServiceImplpublic FormServiceImpl()
 
- 
- 
Method Details- 
getVariablesFromFormSubmission
- 
validateFormFieldspublic void validateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values) - Specified by:
- validateFormFieldsin interface- FormService
 
- 
getVariablesFromFormSubmissionpublic 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 interface- FormService
 
- 
createFormInstancepublic FormInstance createFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) - Specified by:
- createFormInstancein interface- FormService
 
- 
saveFormInstancepublic FormInstance saveFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) - Specified by:
- saveFormInstancein interface- FormService
 
- 
saveFormInstanceByFormDefinitionIdpublic FormInstance saveFormInstanceByFormDefinitionId(Map<String, Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) - Specified by:
- saveFormInstanceByFormDefinitionIdin interface- FormService
 
- 
createFormInstanceWithScopeIdpublic FormInstance createFormInstanceWithScopeId(Map<String, Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) - Specified by:
- createFormInstanceWithScopeIdin interface- FormService
 
- 
saveFormInstanceWithScopeIdpublic FormInstance saveFormInstanceWithScopeId(Map<String, Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) - Specified by:
- saveFormInstanceWithScopeIdin interface- FormService
 
- 
saveFormInstanceWithScopeIdpublic FormInstance saveFormInstanceWithScopeId(Map<String, Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) - Specified by:
- saveFormInstanceWithScopeIdin interface- FormService
 
- 
getFormModelWithVariablesByIdpublic FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String, Object> variables) - Specified by:
- getFormModelWithVariablesByIdin interface- FormService
 
- 
getFormModelWithVariablesByIdpublic FormInfo getFormModelWithVariablesById(String formId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormModelWithVariablesByIdin interface- FormService
 
- 
getFormModelWithVariablesByKeypublic FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables) - Specified by:
- getFormModelWithVariablesByKeyin interface- FormService
 
- 
getFormModelWithVariablesByKeypublic FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormModelWithVariablesByKeyin interface- FormService
 
- 
getFormModelWithVariablesByKeyAndParentDeploymentIdpublic FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables) - Specified by:
- getFormModelWithVariablesByKeyAndParentDeploymentIdin interface- FormService
 
- 
getFormModelWithVariablesByKeyAndParentDeploymentIdpublic FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormModelWithVariablesByKeyAndParentDeploymentIdin interface- FormService
 
- 
getFormInstanceModelByIdpublic FormInstanceInfo getFormInstanceModelById(String formInstanceId, Map<String, Object> variables) - Specified by:
- getFormInstanceModelByIdin interface- FormService
 
- 
getFormInstanceModelByIdpublic FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables) - Specified by:
- getFormInstanceModelByIdin interface- FormService
 
- 
getFormInstanceModelByIdpublic FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormInstanceModelByIdin interface- FormService
 
- 
getFormInstanceModelByKeypublic FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables) - Specified by:
- getFormInstanceModelByKeyin interface- FormService
 
- 
getFormInstanceModelByKeypublic FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormInstanceModelByKeyin interface- FormService
 
- 
getFormInstanceModelByKeyAndParentDeploymentIdpublic FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables) - Specified by:
- getFormInstanceModelByKeyAndParentDeploymentIdin interface- FormService
 
- 
getFormInstanceModelByKeyAndParentDeploymentIdpublic FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormInstanceModelByKeyAndParentDeploymentIdin interface- FormService
 
- 
getFormInstanceModelByKeyAndScopeIdpublic FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables) - Specified by:
- getFormInstanceModelByKeyAndScopeIdin interface- FormService
 
- 
getFormInstanceModelByKeyAndScopeIdpublic FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormInstanceModelByKeyAndScopeIdin interface- FormService
 
- 
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdpublic FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables) - Specified by:
- getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdin interface- FormService
 
- 
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdpublic FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
- getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdin interface- FormService
 
- 
filterFormValuespublic 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 interface- CoreFormService
- 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 interface- FormService
 
- 
createFormInstanceQuery- Specified by:
- createFormInstanceQueryin interface- FormService
 
- 
deleteFormInstance- Specified by:
- deleteFormInstancein interface- FormService
 
- 
deleteFormInstancesByFormDefinition- Specified by:
- deleteFormInstancesByFormDefinitionin interface- FormService
 
- 
deleteFormInstancesByProcessDefinition- Specified by:
- deleteFormInstancesByProcessDefinitionin interface- FormService
 
- 
deleteFormInstancesByScopeDefinition- Specified by:
- deleteFormInstancesByScopeDefinitionin interface- FormService
 
- 
getSavedFormVariables
- 
getStartFormVariables
- 
bulkDeleteFormInstancesByProcessInstanceIds
- 
bulkDeleteFormInstancesByScopeIdsAndScopeTypepublic void bulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType) 
 
-